diff --git a/src/router/modules/accountManagement.js b/src/router/modules/accountManagement.js index ad95309..33f6dc7 100644 --- a/src/router/modules/accountManagement.js +++ b/src/router/modules/accountManagement.js @@ -9,7 +9,7 @@ const nestedRouter = { path: 'account', component: resolve => require(['@/views/account/index'], resolve), name: '账号管理', - meta: { title: '账号管理', noCache: true, affix: true } + meta: { title: '账号管理' } } ] }; diff --git a/src/router/modules/customerManagement.js b/src/router/modules/customerManagement.js index d95607b..a617a38 100644 --- a/src/router/modules/customerManagement.js +++ b/src/router/modules/customerManagement.js @@ -9,7 +9,7 @@ const nestedRouter = { path: 'customer', component: resolve => require(['@/views/customer/index'], resolve), name: '客户管理', - meta: { title: '客户管理', noCache: true, affix: true } + meta: { title: '客户管理' } } ] }; diff --git a/src/router/modules/customerService.js b/src/router/modules/customerService.js index 28e4edf..e12ef46 100644 --- a/src/router/modules/customerService.js +++ b/src/router/modules/customerService.js @@ -9,7 +9,7 @@ const nestedRouter = { path: 'service', component: resolve => require(['@/views/service/index'], resolve), name: '客服中心', - meta: { title: '客服中心', noCache: true, affix: true } + meta: { title: '客服中心' } } ] }; diff --git a/src/utils/editor.js b/src/utils/editor.js index fc03154..45ea86f 100644 --- a/src/utils/editor.js +++ b/src/utils/editor.js @@ -3,12 +3,14 @@ export function formatRichText(url) { console.log(src); for (let i = 0; i < src.length; i++) { const string = src[i].getAttribute('src'); - src[i].setAttribute('src', url + string); + const flag = string.includes('http://'); + if (!flag) src[i].setAttribute('src', url + string); } let src2 = document.querySelectorAll('#text .ql-editor a'); for (let i = 0; i < src2.length; i++) { const string = src2[i].getAttribute('href'); - src2[i].setAttribute('href', url + string); + const flag = string.includes('http://'); + if (!flag) src2[i].setAttribute('href', url + string); } // console.log(document.querySelectorAll('#text .ql-editor a')); // var imgReg = /|\/>)/gi; diff --git a/src/views/policy/library/add.vue b/src/views/policy/library/add.vue index e7b7b98..5553a7b 100644 --- a/src/views/policy/library/add.vue +++ b/src/views/policy/library/add.vue @@ -10,10 +10,18 @@ label-width="80px" > - + - + - + - +
- + 确定 @@ -178,3 +195,10 @@ export default { } }; +