diff --git a/buyer/src/config/index.js b/buyer/src/config/index.js index 03bfbc07..b4e4a718 100644 --- a/buyer/src/config/index.js +++ b/buyer/src/config/index.js @@ -20,6 +20,6 @@ module.exports = { * 如果2021年12月02日之前申请的无视上面代码 */ aMapKey: "b440952723253aa9fe483e698057bf7d", //高德web端申请的api key - enableCDN: false, //生产环境 是否启用cdn加载 vue等js + enableCDN: true, //生产环境 是否启用cdn加载 vue等js port: 10000, //端口 }; diff --git a/buyer/vue.config.js b/buyer/vue.config.js index 34650b64..dfd18a34 100644 --- a/buyer/vue.config.js +++ b/buyer/vue.config.js @@ -25,15 +25,15 @@ let externals = { // 使用CDN的内容 let cdn = { - css: ["https://cdn.jsdelivr.net/npm/view-design@4.1.1/dist/styles/iview.css"], + css: ["https://cdn.pickmall.cn/cdn/iview.css"], js: [ // vue must at first! - "https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js", - "https://cdn.jsdelivr.net/npm/vuex@3.1.2/dist/vuex.min.js", - "https://cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js", - "https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js", - "https://cdn.jsdelivr.net/npm/view-design@4.1.1/dist/iview.min.js", - "https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js" + "https://cdn.pickmall.cn/cdn/vue.min.js", + "https://cdn.pickmall.cn/cdn/vuex.min.js", + "https://cdn.pickmall.cn/cdn/vue-router.min.js", + "https://cdn.pickmall.cn/cdn/axios.min.js", + "https://cdn.pickmall.cn/cdn/iview.min.js", + "https://cdn.pickmall.cn/cdn/js.cookie.min.js", ] }; diff --git a/manager/src/config/index.js b/manager/src/config/index.js index ca8772e1..0361f303 100644 --- a/manager/src/config/index.js +++ b/manager/src/config/index.js @@ -13,6 +13,6 @@ module.exports = { */ aMapKey: "b440952723253aa9fe483e698057bf7d", website: "https://www.pickmall.cn", //官网地址 - enableCDN: false, //生产环境 是否启用cdn加载 vue等js + enableCDN: true, //生产环境 是否启用cdn加载 vue等js port: 10003, //端口 }; diff --git a/manager/src/views/sys/oss-manage/ossManage.vue b/manager/src/views/sys/oss-manage/ossManage.vue index eb194c2d..b255e4c5 100644 --- a/manager/src/views/sys/oss-manage/ossManage.vue +++ b/manager/src/views/sys/oss-manage/ossManage.vue @@ -26,7 +26,7 @@ style="width: 200px" /> - + - + diff --git a/manager/vue.config.js b/manager/vue.config.js index 02a8386e..2a3ea716 100644 --- a/manager/vue.config.js +++ b/manager/vue.config.js @@ -30,19 +30,19 @@ let externals = { // 使用CDN的内容 let cdn = { - css: ["https://cdn.jsdelivr.net/npm/view-design@4.1.1/dist/styles/iview.css"], + css: ["https://cdn.pickmall.cn/cdn/iview.css"], js: [ // vue must at first! - "https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js", - "https://cdn.jsdelivr.net/npm/vuex@3.1.2/dist/vuex.min.js", - "https://cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js", - "https://cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js", - "https://cdn.jsdelivr.net/npm/view-design@4.1.1/dist/iview.min.js", - "https://cdn.jsdelivr.net/npm/vue-lazyload@1.3.3/vue-lazyload.min.js", - "https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js", - "https://cdn.jsdelivr.net/npm/dplayer@1.25.0/dist/DPlayer.min.js", - "https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js", - "https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js", + "https://cdn.pickmall.cn/cdn/vue.min.js", + "https://cdn.pickmall.cn/cdn/vuex.min.js", + "https://cdn.pickmall.cn/cdn/vue-router.min.js", + "https://cdn.pickmall.cn/cdn/axios.min.js", + "https://cdn.pickmall.cn/cdn/iview.min.js", + "https://cdn.pickmall.cn/cdn/vue-lazyload.min.js", + "https://cdn.pickmall.cn/cdn/js.cookie.min.js", + "https://cdn.pickmall.cn/cdn/DPlayer.min.js", + "https://cdn.pickmall.cn/cdn/wangEditor.min.js", + "https://cdn.pickmall.cn/cdn/sockjs.min.js", "https://gw.alipayobjects.com/os/lib/antv/g2/4.1.24/dist/g2.min.js" ] }; diff --git a/seller/src/config/index.js b/seller/src/config/index.js index 7991ee04..27fa36ea 100644 --- a/seller/src/config/index.js +++ b/seller/src/config/index.js @@ -13,6 +13,6 @@ module.exports = { */ aMapKey: "b440952723253aa9fe483e698057bf7d", //高德web端申请的api key website: "https://www.pickmall.cn", //官网地址 - enableCDN: false, //生产环境 是否启用cdn加载 vue等js + enableCDN: true, //生产环境 是否启用cdn加载 vue等js port: 10002, //端口 }; diff --git a/seller/vue.config.js b/seller/vue.config.js index cc2d8034..2b7f6305 100644 --- a/seller/vue.config.js +++ b/seller/vue.config.js @@ -29,18 +29,18 @@ let externals = { // 使用CDN的内容 let cdn = { - css: ["https://cdn.jsdelivr.net/npm/view-design@4.1.1/dist/styles/iview.css"], + css: ["https://cdn.pickmall.cn/cdn/iview.css"], js: [ // vue must at first! - "https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js", - "https://cdn.jsdelivr.net/npm/vuex@3.1.2/dist/vuex.min.js", - "https://cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js", - "https://cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js", - "https://cdn.jsdelivr.net/npm/view-design@4.1.1/dist/iview.min.js", - "https://cdn.jsdelivr.net/npm/vue-lazyload@1.3.3/vue-lazyload.min.js", - "https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js", - "https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js", - "https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js", + "https://cdn.pickmall.cn/cdn/vue.min.js", + "https://cdn.pickmall.cn/cdn/vuex.min.js", + "https://cdn.pickmall.cn/cdn/vue-router.min.js", + "https://cdn.pickmall.cn/cdn/axios.min.js", + "https://cdn.pickmall.cn/cdn/iview.min.js", + "https://cdn.pickmall.cn/cdn/vue-lazyload.min.js", + "https://cdn.pickmall.cn/cdn/js.cookie.min.js", + "https://cdn.pickmall.cn/cdn/wangEditor.min.js", + "https://cdn.pickmall.cn/cdn/sockjs.min.js", "https://gw.alipayobjects.com/os/lib/antv/g2/4.1.24/dist/g2.min.js" ] };