diff --git a/http/mock.http b/http/mock.http deleted file mode 100644 index 9f437b5..0000000 --- a/http/mock.http +++ /dev/null @@ -1,70 +0,0 @@ - -###/changeLog/getList###mockServer -POST http://localhost:80/mock-server/changeLog/getList -Content-Type: application/x-www-form-urlencoded -### -mockServer -###/colorfulIcon/list### -POST http://localhost:80/mock-server/colorfulIcon/list -Content-Type: application/x-www-form-urlencoded -###mockServer - -###/menu/navigate### -POST http://localhost:80/mock-server/menu/navigate -Content-Type: application/x-www-form-urlenmockServer -### - -###/icon/list### -POST http://localhost:80/mock-server/icon/mockServer -Content-Type: application/x-www-form-urlencoded -### - -###/face/list###mockServer -POST http://localhost:80/mock-server/face/list -Content-Type: application/x-www-form-urlencoded -### -mockServer -###/table/list### -POST http://localhost:80/mock-server/table/list -Content-Type: application/x-www-form-urlencoded -###mockServer - -###/remixicon/getList### -POST http://localhost:80/mock-server/remixicon/getList -Content-Type: application/x-www-form-urlenmockServer -### - -###/publicKey### -POST http://localhost:80/mock-server/pumockServer -Content-Type: application/x-www-form-urlencoded -### - -###/tree/list###mockServer -POST http://localhost:80/mock-server/tree/list -Content-Type: application/x-www-form-urlencoded -### -mockServer -###/upload### -POST http://localhost:80/mock-server/upload -Content-Type: application/x-www-form-urlencoded -###mockServer - -###/login### -POST http://localhost:80/mock-server/login -Content-Type: application/x-www-form-urlenmockServer -### - -###/waterfall/list### -POST http://localhost:80/mock-server/waterfall/list -Content-Type: application/x-www-form-urlencoded -### - -###/logout### -POST http://localhost:80/mock-server/logout -Content-Type: application/x-www-form-urlencoded -### - -###/userInfo### -POST http://localhost:80/mock-server/userInfo -Content-Type: application/x-www-form-urlencoded -### diff --git a/mock/controller/upload.js b/mock/controller/upload.js deleted file mode 100644 index f6dad7b..0000000 --- a/mock/controller/upload.js +++ /dev/null @@ -1,14 +0,0 @@ -const data = []; -module.exports = [ - { - url: "/upload", - type: "post", - response() { - return { - code: 200, - msg: "success", - data: data, - }; - }, - }, -]; diff --git a/mock/index.js b/mock/index.js index 68566c0..ed86991 100644 --- a/mock/index.js +++ b/mock/index.js @@ -1,5 +1,5 @@ /** - * @copyright chuzhixin 1204505056@qq.com + * @author chuzhixin 1204505056@qq.com * @description 导入所有 controller 模块,npm run serve时在node环境中自动输出controller文件夹下Mock接口,请勿修改。 */ diff --git a/mock/mockServer.js b/mock/mockServer.js index 23944fd..27eb669 100644 --- a/mock/mockServer.js +++ b/mock/mockServer.js @@ -70,7 +70,6 @@ module.exports = (app) => { let mockStartIndex = mockRoutes.mockStartIndex; chokidar .watch(mockDir, { - ignored: /mock-server/, ignoreInitial: true, }) .on("all", (event) => { diff --git a/package.json b/package.json index 67163c7..9f6ddea 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "lodash": "^4.17.20", "maptalks": "^0.49.1", "mapv": "^2.0.57", + "mockjs": "^1.1.0", "nprogress": "^0.2.0", "qs": "^6.9.4", "screenfull": "^5.0.2", @@ -72,24 +73,23 @@ "devDependencies": { "@vue/cli-plugin-babel": "^4.5.6", "@vue/cli-plugin-eslint": "^4.5.6", - "@vue/cli-plugin-router": "^4.5.6", - "@vue/cli-plugin-vuex": "^4.5.6", "@vue/cli-service": "^4.5.6", "@vue/eslint-config-prettier": "^6.0.0", "babel-eslint": "^10.1.0", + "body-parser": "^1.19.0", + "chalk": "^4.1.0", + "chokidar": "^3.4.2", "compression-webpack-plugin": "^6.0.2", "eslint": "^7.10.0", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-vue": "^7.0.0", "filemanager-webpack-plugin": "^2.0.5", - "image-webpack-loader": "^7.0.1", "lint-staged": "^10.4.0", - "mockjs": "^1.1.0", "plop": "^2.7.4", "prettier": "^2.1.2", + "raw-loader": "^4.0.1", "sass": "^1.26.11", "sass-loader": "^10.0.2", - "script-loader": "^0.7.2", "stylelint": "^13.7.2", "stylelint-config-prettier": "^8.0.2", "stylelint-config-recess-order": "^2.1.0", diff --git a/src/components/VabUpload/index.vue b/src/components/VabUpload/index.vue index 65fc0b2..9ed2f2d 100644 --- a/src/components/VabUpload/index.vue +++ b/src/components/VabUpload/index.vue @@ -1,10 +1,10 @@