From 9c96709e1e5fda506399b736da9c0e8422a4b3fe Mon Sep 17 00:00:00 2001 From: icssoa <2570063477@qq.com> Date: Wed, 17 Mar 2021 18:34:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20mock=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=AE=A2=E6=9C=8D=E8=81=8A=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 7 +- src/cool/index.js | 1 + .../base/components/route-nav/index.vue | 2 +- .../chat/components/{box.vue => chat.vue} | 131 ++++++++++-------- src/cool/modules/chat/components/index.js | 3 +- src/cool/modules/chat/components/message.vue | 10 +- src/cool/modules/chat/service/message.js | 5 +- src/cool/modules/chat/service/session.js | 5 +- src/main.js | 3 + src/mock/chat.js | 75 ++++++++++ src/mock/index.js | 1 + 11 files changed, 173 insertions(+), 70 deletions(-) rename src/cool/modules/chat/components/{box.vue => chat.vue} (88%) create mode 100644 src/mock/chat.js create mode 100644 src/mock/index.js diff --git a/package.json b/package.json index a6dec78..c22a0f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cool-admin-vue", - "version": "3.0.2", + "version": "3.1.0", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", @@ -10,8 +10,8 @@ }, "dependencies": { "axios": "^0.21.1", - "cl-admin": "^1.3.4", - "cl-admin-crud": "^1.6.0", + "cl-admin": "^1.4.0", + "cl-admin-crud": "^1.6.2", "cl-admin-theme": "^0.0.4", "clipboard": "^2.0.7", "codemirror": "^5.59.4", @@ -20,6 +20,7 @@ "echarts": "^4.5.0", "element-ui": "^2.15.1", "js-beautify": "^1.13.5", + "mockjs": "^1.1.0", "nprogress": "^0.2.0", "qs": "^6.9.1", "quill": "^1.3.7", diff --git a/src/cool/index.js b/src/cool/index.js index 9f59772..6a6ae83 100644 --- a/src/cool/index.js +++ b/src/cool/index.js @@ -25,6 +25,7 @@ export default { } } }, + "chat", "task", "copy", "distpicker", diff --git a/src/cool/modules/base/components/route-nav/index.vue b/src/cool/modules/base/components/route-nav/index.vue index 8ecb4fd..fd19d8d 100644 --- a/src/cool/modules/base/components/route-nav/index.vue +++ b/src/cool/modules/base/components/route-nav/index.vue @@ -66,7 +66,7 @@ export default { }, computed: { - ...mapGetters(["conf", "menuGroup"]), + ...mapGetters(["menuGroup"]), lastName() { return _.last(this.list).name; diff --git a/src/cool/modules/chat/components/box.vue b/src/cool/modules/chat/components/chat.vue similarity index 88% rename from src/cool/modules/chat/components/box.vue rename to src/cool/modules/chat/components/chat.vue index 7f15aa7..48cfaad 100644 --- a/src/cool/modules/chat/components/box.vue +++ b/src/cool/modules/chat/components/chat.vue @@ -1,11 +1,11 @@