文件格式编码改为uft-8

This commit is contained in:
qinjie 2021-08-20 16:36:52 +08:00
parent 5039bc0deb
commit 8b90525e3d
1 changed files with 8 additions and 8 deletions

View File

@ -80,7 +80,7 @@ const vueConfig = {
loaderOptions: {
less: {
modifyVars: {
// less varscustomize ant design theme
// less vars锛宑ustomize ant design theme
// 'primary-color': '#F5222D',
// 'link-color': '#F5222D',
@ -93,15 +93,15 @@ const vueConfig = {
},
devServer: {
disableHostCheck: true, // <EFBFBD><EFBFBD><EFBFBD>vue<EFBFBD><EFBFBD>Ŀ<EFBFBD>еġ<EFBFBD>Invalid Host header<65><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
port: 8001, // development server port Ĭ<EFBFBD><EFBFBD>8001<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ķ˿ں<EFBFBD><EFBFBD>Ƕ<EFBFBD><EFBFBD>ٶ<EFBFBD><EFBFBD><EFBFBD>
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƴ<EFBFBD>mockjs /src/main.jsL11
disableHostCheck: true, // 解决vue项目中的“Invalid Host header”问题
port: 8001, // development server port 默认8001这个得看你的项目申请的端口号是多少而定
// 如果需要开启代理,请移除mockjs /src/main.jsL11
proxy: {
'/dawa': { // <EFBFBD><EFBFBD><EFBFBD><EFBFBD>API<EFBFBD>ı<EFBFBD>־<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>API<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ô<EFBFBD>Ϳ<EFBFBD>ʼƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
target: 'http://a.3a6.cn/', // <EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IP<EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>API<EFBFBD><EFBFBD><EFBFBD><EFBFBD>/api/getList, <20><EFBFBD><E1B1BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>http://www.baidu.com/api/getList <20><>
'/dawa': { // 捕获API的标志如果API中有这个字符串那么就开始匹配代理
target: 'http://a.3a6.cn/', // 地址可以是域名也可以是IP地址。比如API请求/api/getList, 会被代理到请求http://www.baidu.com/api/getList 。
ws: false,
changeOrigin: true // <EFBFBD><EFBFBD><EFBFBD>target<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>changeOrigin: true<75><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD>ܡ<EFBFBD>
// ,pathRewrite: {
changeOrigin: true // 如果target是域名需要额外添加一个参数changeOrigin: true否则会代理失败。
// , pathRewrite: {
// '^/dawa': '/'
// }
}