diff --git a/package.json b/package.json index 95af2d6e..6477c925 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "SCUI-Admin", - "version": "1.1.0", + "version": "1.1.1", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/api/index.js b/src/api/index.js index b02d4e13..75a7fb57 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -10,6 +10,15 @@ import http from "@/utils/request"; */ const api = { + default: { + upload: { + url: `${config.MOCK_URL}/upload`, + name: "文件上传", + post: async function(data){ + return await http.post(this.url, data); + } + } + }, user: { login: { url: `${config.API_URL}/json/login.json`, @@ -105,7 +114,10 @@ const api = { demo: { upload: { url: `${config.MOCK_URL}/upload`, - name: "文件上传接口" + name: "文件上传接口", + post: async function(data){ + return await http.post(this.url, data); + } }, select: { url: `${config.API_URL}/json/select.json`, diff --git a/src/components/scEditor/index.vue b/src/components/scEditor/index.vue index 9bfbc1ef..ab8148f7 100644 --- a/src/components/scEditor/index.vue +++ b/src/components/scEditor/index.vue @@ -11,6 +11,7 @@