|
@@ -1,12 +1,12 @@
|
|
|
const autoprefixer = require('autoprefixer');
|
|
|
const pxtorem = require('postcss-pxtorem');
|
|
|
// const psth = 'http://admin.yiguanjiadev.me';
|
|
|
-const psth = 'http://admintest.yiguanjia.me';
|
|
|
+const psth = 'http://admintest.yiguanjia.club';
|
|
|
module.exports = {
|
|
|
outputDir: 'docs',
|
|
|
// baseUrl: process.env.NODE_ENV === 'production' ? 'http://<?php echo $host ?>/webapp/safety/dome' : '/',
|
|
|
baseUrl:
|
|
|
- process.env.NODE_ENV === 'production' ? 'http://common.yiguanjia.me/webapp/safety/dome/' : '/',
|
|
|
+ process.env.NODE_ENV === 'production' ? 'http://common.yiguanjia.club/webapp/safety/dome/' : '/',
|
|
|
// where to output built files
|
|
|
outputDir: 'dome',
|
|
|
css: {
|
|
@@ -28,7 +28,7 @@ module.exports = {
|
|
|
proxy: {
|
|
|
'/moonclub': {
|
|
|
target: psth + '/index.php?r=moonclub', // 设置调用接口域名和端口号别忘了加http
|
|
|
- // target: 'http://commontest.yiguanjia.me/index.php?r=/moonclub/', //设置调用接口域名和端口号别忘了加http
|
|
|
+ // target: 'http://commontest.yiguanjia.club/index.php?r=/moonclub/', //设置调用接口域名和端口号别忘了加http
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
'^/moonclub': '/', // 这里理解成用‘/api’代替target里面的地址,组件中我们调接口时直接用/api代替
|
|
@@ -37,7 +37,7 @@ module.exports = {
|
|
|
},
|
|
|
'/ch': {
|
|
|
target: psth + '/index.php?r=ch', // 设置调用接口域名和端口号别忘了加http
|
|
|
- // target: 'http://commontest.yiguanjia.me/index.php?r=/moonclub/', //设置调用接口域名和端口号别忘了加http
|
|
|
+ // target: 'http://commontest.yiguanjia.club/index.php?r=/moonclub/', //设置调用接口域名和端口号别忘了加http
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
'^/ch': '/', // 这里理解成用‘/api’代替target里面的地址,组件中我们调接口时直接用/api代替
|
|
@@ -46,7 +46,7 @@ module.exports = {
|
|
|
},
|
|
|
// '/api': {
|
|
|
// target: 'http://127.0.0.1:3000/api/', //设置调用接口域名和端口号别忘了加http
|
|
|
- // // target: 'http://commontest.yiguanjia.me/index.php?r=/moonclub/', //设置调用接口域名和端口号别忘了加http
|
|
|
+ // // target: 'http://commontest.yiguanjia.club/index.php?r=/moonclub/', //设置调用接口域名和端口号别忘了加http
|
|
|
// changeOrigin: true,
|
|
|
// pathRewrite: {
|
|
|
// '^/api': '/', //这里理解成用‘/api’代替target里面的地址,组件中我们调接口时直接用/api代替
|