|
@@ -1,4 +1,5 @@
|
|
|
const path = require('path');
|
|
|
+const common = path.resolve(__dirname, '../common');
|
|
|
module.exports = {
|
|
|
publicPath: process.env.NODE_ENV === 'development' ? '/' : process.env.VUE_APP_ROUTER,
|
|
|
// outputDir: process.env.VUE_APP_ROUTER,
|
|
@@ -10,6 +11,7 @@ module.exports = {
|
|
|
'@': path.resolve(__dirname, './src'),
|
|
|
'@c': path.resolve(__dirname, './src/components'),
|
|
|
'@a': path.resolve(__dirname, './src/assets'),
|
|
|
+ '@common': common,
|
|
|
},
|
|
|
},
|
|
|
});
|
|
@@ -18,55 +20,8 @@ module.exports = {
|
|
|
port: '8100',
|
|
|
//api地址前缀
|
|
|
proxy: {
|
|
|
- '/weixin': {
|
|
|
- target: 'http://smart.cc-lotus.info',
|
|
|
- changeOrigin: true,
|
|
|
- ws: true,
|
|
|
- },
|
|
|
- '/files': {
|
|
|
- target: 'http://free.liaoningdoupo.com',
|
|
|
- },
|
|
|
- '/api/setting': {
|
|
|
- target: 'http://free.liaoningdoupo.com', //http://free.liaoningdoupo.com
|
|
|
- changeOrigin: true,
|
|
|
- ws: true,
|
|
|
- },
|
|
|
- '/api/affairs': {
|
|
|
- target: 'http://free.liaoningdoupo.com',
|
|
|
- changeOrigin: true,
|
|
|
- ws: true,
|
|
|
- },
|
|
|
- '/api/policy': {
|
|
|
- target: 'http://free.liaoningdoupo.com',
|
|
|
- changeOrigin: true,
|
|
|
- ws: true,
|
|
|
- },
|
|
|
- '/api/record': {
|
|
|
- target: 'http://free.liaoningdoupo.com',
|
|
|
- changeOrigin: true,
|
|
|
- ws: true,
|
|
|
- },
|
|
|
- '/api/serve': {
|
|
|
- target: 'http://free.liaoningdoupo.com',
|
|
|
- changeOrigin: true,
|
|
|
- ws: true,
|
|
|
- // pathRewrite: { '^/api/affairs': '/api' },
|
|
|
- },
|
|
|
- '/api/talent': {
|
|
|
- target: 'http://free.liaoningdoupo.com',
|
|
|
- changeOrigin: true,
|
|
|
- ws: true,
|
|
|
- // pathRewrite: { '^/api/affairs': '/api' },
|
|
|
- },
|
|
|
- '/api/market': {
|
|
|
- target: 'http://free.liaoningdoupo.com',
|
|
|
- changeOrigin: true,
|
|
|
- ws: true,
|
|
|
- // pathRewrite: { '^/api/affairs': '/api' },
|
|
|
- },
|
|
|
- '/api': {
|
|
|
+ '/api/auth': {
|
|
|
target: 'http://free.liaoningdoupo.com',
|
|
|
- // target: 'http://10.16.10.72:9004',
|
|
|
changeOrigin: true,
|
|
|
ws: true,
|
|
|
// pathRewrite: { '^/api/affairs': '/api' },
|