feat: cdn改为本地依赖
This commit is contained in:
parent
f1093cb41c
commit
ef0828f271
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -22,10 +22,10 @@ const assetsCDN = {
|
||||||
css: [],
|
css: [],
|
||||||
// https://unpkg.com/browse/vue@2.6.10/
|
// https://unpkg.com/browse/vue@2.6.10/
|
||||||
js: [
|
js: [
|
||||||
'//cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js',
|
'./static/lib/vue.min.js',
|
||||||
'//cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js',
|
'./static/lib/vue-router.min.js',
|
||||||
'//cdn.jsdelivr.net/npm/vuex@3.1.1/dist/vuex.min.js',
|
'./static/lib/vuex.min.js',
|
||||||
'//cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js'
|
'./static/lib/axios.min.js'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ const vueConfig = {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/dawa': { // 捕获API的标志,如果API中有这个字符串,那么就开始匹配代理
|
'/dawa': { // 捕获API的标志,如果API中有这个字符串,那么就开始匹配代理
|
||||||
target: 'http://a.3a6.cn/dawa', // 地址可以是域名,也可以是IP地址。比如API请求/api/getList, 会被代理到请求http://www.baidu.com/api/getList 。
|
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,
|
ws: false,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|
Loading…
Reference in New Issue