地址
This commit is contained in:
parent
faa517c3df
commit
0fbb7345cd
@ -3,7 +3,7 @@ var CONFIG = {
|
||||
login_background: '/assets/login_background.jpg',
|
||||
logo_big: '/assets/logo_big.png',
|
||||
logo_small: '/assets/logo_small.jpg',
|
||||
url: 'http://v.denghaoyuan.cn'
|
||||
url: (window.location.hostname === 'localhost') ? 'http://v.denghaoyuan.cn' : '/'
|
||||
};
|
||||
|
||||
window.CONFIG = CONFIG;
|
||||
|
@ -1,14 +1,12 @@
|
||||
const path = require('path')
|
||||
const path = require('path');
|
||||
|
||||
const resolve = dir => {
|
||||
return path.join(__dirname, dir)
|
||||
}
|
||||
return path.join(__dirname, dir);
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
outputDir: '../public',
|
||||
indexPath: process.env.NODE_ENV === 'production' ?
|
||||
'../resources/views/index.blade.php' :
|
||||
'index.html',
|
||||
indexPath: process.env.NODE_ENV === 'production' ? '../resources/views/index.blade.php' : 'index.html',
|
||||
lintOnSave: true,
|
||||
chainWebpack: config => {
|
||||
config.resolve.alias
|
||||
@ -25,12 +23,12 @@ module.exports = {
|
||||
.set('lib', resolve('src/assets/lib'))
|
||||
.set('service', resolve('src/service'))
|
||||
.set('util', resolve('src/service/util'))
|
||||
.set('validate', resolve('src/service/validate'))
|
||||
.set('validate', resolve('src/service/validate'));
|
||||
},
|
||||
runtimeCompiler: true,
|
||||
productionSourceMap: true,
|
||||
productionSourceMap: true
|
||||
// 这里写你调用接口的基础路径,来解决跨域,如果设置了代理,那你本地开发环境的axios的baseUrl要写为 '' ,即空字符串
|
||||
// devServer: {
|
||||
// proxy: 'localhost:3000'
|
||||
// }
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user