guhongwei 4 tahun lalu
induk
melakukan
9671e423a7
3 mengubah file dengan 7 tambahan dan 6 penghapusan
  1. 1 1
      .env
  2. 1 1
      src/router/index.js
  3. 5 4
      vue.config.js

+ 1 - 1
.env

@@ -1,2 +1,2 @@
 VUE_APP_AXIOS_BASE_URL = ''
-VUE_APP_ROUTER="/tyresystem"
+VUE_APP_ROUTER="/tyre"

+ 1 - 1
src/router/index.js

@@ -4,7 +4,7 @@ import Router from 'vue-router';
 Vue.use(Router);
 export default new Router({
   mode: 'history',
-  base: process.env.NODE_ENV === 'development' ? '' : 'tyresystem',
+  base: process.env.NODE_ENV === 'development' ? '' : 'tyre',
   routes: [
     {
       path: '/',

+ 5 - 4
vue.config.js

@@ -2,7 +2,7 @@ const path = require('path');
 module.exports = {
   publicPath: process.env.NODE_ENV === 'development' ? '/' : process.env.VUE_APP_ROUTER,
   // 打包文件
-  outputDir: 'tyresystem',
+  outputDir: 'tyre',
   configureWebpack: config => {
     Object.assign(config, {
       // 开发生产共同配置
@@ -20,15 +20,16 @@ module.exports = {
     //api地址前缀
     proxy: {
       '/files': {
-        target: 'http://free.liaoningdoupo.com',
+        target: 'http://192.168.1.43:8081',
+        // http://free.liaoningdoupo.com
       },
       '/api': {
-        target: 'http://free.liaoningdoupo.com',
+        target: 'http://192.168.1.43:8081',
         changeOrigin: true,
         ws: true,
       },
       '/ws': {
-        target: 'http://free.liaoningdoupo.com',
+        target: 'http://192.168.1.43:8081',
         ws: true,
       },
     },