quwangxin 2 лет назад
Родитель
Сommit
8dca2ac5b0

+ 1 - 1
src/api/saleOrder/index.js

@@ -27,7 +27,7 @@ export async function getPageList (data) {
           }
         }
       } else {
-        const unwatch = Vue.$watch(
+        const unwatch = Vue.prototype.$watch(
           '$store.state.user.menus',
           () => {
             if (store.state.user.menus?.length) {

+ 1 - 1
src/store/modules/user.js

@@ -150,7 +150,7 @@ export default {
       // const homePath = '/dashboard/workplace';
       return {
         menus,
-        homePath: '/forget',
+        homePath,
         authoritiesRouter
       };
     },

+ 2 - 2
src/views/productionPlan/workOrderPublish.vue

@@ -159,11 +159,11 @@
     methods: {
       back () {
         if (this.type == 2) {
-          this.$router.go(-1);
+          this.$router.push('/productionPlan');
           return;
         }
         this.$confirm('返回后将清空所有方案,是否要继续?', '提示').then(() => {
-          this.$router.go(-1);
+          this.$router.push('/productionPlan');
         });
       },
       async getInfo () {

+ 1 - 1
src/views/saleOrder/components/order-search.vue

@@ -248,7 +248,7 @@
             this.where.proStu = 0;
           }
 
-          this.reset();
+          this.search();
         },
         immediate: true
       }

+ 2 - 2
vue.config.js

@@ -31,12 +31,12 @@ module.exports = {
     proxy: {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
-        target: 'http://192.168.3.35:8080', // kang杨威
+        // target: 'http://192.168.3.35:8080', // kang杨威
         // target: 'http://192.168.3.38:8080', // 陈潇
         // target: 'http://192.168.3.25:8080', // 黄峥嵘
         // target: 'http://192.168.3.41:8080', // 何江鹏
         // target: 'http://192.168.3.33:8080', // 谢一平
-        // target: 'http://192.168.3.51:18086', // 测试环境
+        target: 'http://192.168.3.51:18086', // 测试环境
 
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {