Browse Source

计划外列表页面刷新优化

zhujindu 11 months ago
parent
commit
82d9c33754

+ 1 - 1
src/views/deviceOutside/index.vue

@@ -1847,7 +1847,7 @@ export default {
                               message: '定位失败,请开启企微定位权限',
                             })
                             .then(() => {
-                              this.$router.go(-1);
+                              // this.$router.go(-1);
                             });
                         } else {
                           clearInterval(times);

+ 3 - 0
src/views/deviceOutside/suishenbangOutstoreVisit.vue

@@ -124,6 +124,7 @@ import {
 } from '@/api/index';
 import axios from 'axios';
 import { saveVisitsParams, getOrderUrlByStoreId } from '@/api/inventory';
+import store from '@/store';
 export default {
   name: 'suishenbangOutstoreVisit',
   data() {
@@ -564,6 +565,8 @@ export default {
       if (this.$route.query.urltype == 1) {
         window.location.replace(window.location.origin + '/mobile/home');
       } else {
+        store.dispatch('setDeviceOutsidePage', true);
+        // 返回上一页不会刷新页面
         this.$router.go(-1);
       }
     },