feat: cdn改为本地依赖

This commit is contained in:
cgd 2022-05-19 10:37:59 +08:00
parent f1093cb41c
commit ef0828f271
5 changed files with 32 additions and 5 deletions

9
public/static/lib/axios.min.js vendored Normal file

File diff suppressed because one or more lines are too long

6
public/static/lib/vue-router.min.js vendored Normal file

File diff suppressed because one or more lines are too long

6
public/static/lib/vue.min.js vendored Normal file

File diff suppressed because one or more lines are too long

6
public/static/lib/vuex.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -22,10 +22,10 @@ const assetsCDN = {
css: [],
// https://unpkg.com/browse/vue@2.6.10/
js: [
'//cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js',
'//cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js',
'//cdn.jsdelivr.net/npm/vuex@3.1.1/dist/vuex.min.js',
'//cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js'
'./static/lib/vue.min.js',
'./static/lib/vue-router.min.js',
'./static/lib/vuex.min.js',
'./static/lib/axios.min.js'
]
}
@ -103,7 +103,7 @@ const vueConfig = {
proxy: {
'/dawa': { // 捕获API的标志如果API中有这个字符串那么就开始匹配代理
target: 'http://a.3a6.cn/dawa', // 地址可以是域名也可以是IP地址。比如API请求/api/getList, 会被代理到请求http://www.baidu.com/api/getList 。
// target: 'http://192.168.2.140:8080', // 地址可以是域名也可以是IP地址。比如API请求/api/getList, 会被代理到请求http://www.baidu.com/api/getList 。
// target: 'http://192.168.2.115:8000/dawa', // 地址可以是域名也可以是IP地址。比如API请求/api/getList, 会被代理到请求http://www.baidu.com/api/getList 。
ws: false,
changeOrigin: true,
pathRewrite: {