From 6cf8b20993dbe45c4cb2fb91650ac46d885a3dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B1=AA?= <781521347@qq.com> Date: Thu, 21 Oct 2021 14:02:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Sidebar/Logo.vue | 2 +- src/router/routers.js | 5 +- src/store/getters.js | 1 + src/store/modules/api.js | 3 + src/views/wechat/reply/addReply.vue | 106 +++++++++++++++++++++---- 5 files changed, 100 insertions(+), 17 deletions(-) diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index 05acb75..76db837 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -25,7 +25,7 @@ export default { }, data() { return { - title: '禅易精舍后台管理系统', + title: '禅易云生态管理系统', logo: Logo } } diff --git a/src/router/routers.js b/src/router/routers.js index ac39b96..a13e2c3 100644 --- a/src/router/routers.js +++ b/src/router/routers.js @@ -67,11 +67,12 @@ export const constantRouterMap = [ }, component: (resolve) => require(['@/components/editorMaterial/index'], resolve), hidden: true - } + }, + { path: '*', component: (resolve) => require(['@/views/home'], resolve) } ] export default new Router({ - mode: 'hash', + mode: 'history', scrollBehavior: () => ({ y: 0 }), routes: constantRouterMap }) diff --git a/src/store/getters.js b/src/store/getters.js index ffc9f37..03e3313 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -19,6 +19,7 @@ const getters = { uploadApi: state => state.api.uploadApi, updateAvatarApi: state => state.api.updateAvatarApi, qiNiuUploadApi: state => state.api.qiNiuUploadApi, + wechatUploadApi: state => state.api.wechatUploadApi, sqlApi: state => state.api.sqlApi, swaggerApi: state => state.api.swaggerApi } diff --git a/src/store/modules/api.js b/src/store/modules/api.js index d26c39f..a63382d 100644 --- a/src/store/modules/api.js +++ b/src/store/modules/api.js @@ -12,6 +12,9 @@ const api = { // 修改头像 updateAvatarApi: baseUrl + '/api/users/updateAvatar', // 上传文件到七牛云 + wechatUploadApi: baseUrl + '/api/wechat/upload', + + // 公众号自动回复上传图片地址 qiNiuUploadApi: baseUrl + '/api/qiNiuContent', uploadApi: baseUrl + '/api/upload', diff --git a/src/views/wechat/reply/addReply.vue b/src/views/wechat/reply/addReply.vue index 1a8831b..3bf9140 100644 --- a/src/views/wechat/reply/addReply.vue +++ b/src/views/wechat/reply/addReply.vue @@ -41,7 +41,7 @@
- +
@@ -105,7 +105,7 @@
- +
@@ -117,10 +117,12 @@
- + + + + + +
@@ -130,15 +132,46 @@
-
-