zhujindu 8 meses atrás
pai
commit
739f805429
2 arquivos alterados com 3 adições e 0 exclusões
  1. 2 0
      src/views/agentList/index.vue
  2. 1 0
      src/views/home/noVisit.vue

+ 2 - 0
src/views/agentList/index.vue

@@ -809,6 +809,7 @@ export default {
             localStorage.setItem('startTime', new Date());
             localStorage.setItem('ORGName', val.deptName);
             localStorage.setItem('chainNameR', val.chainName);
+            localStorage.removeItem('visitId'); //删除上次拜访id
             this.toastLoading().clear();
             this.$router.push({
               path: '/visitPage',
@@ -984,6 +985,7 @@ export default {
       }).then((response) => {
         // 进入拜访之前先刷新页面
         store.dispatch('setDeviceOutsidePage', true);
+        localStorage.removeItem('visitId'); //删除上次拜访id
         this.$router.push({
           path: '/visitPage',
           query: {

+ 1 - 0
src/views/home/noVisit.vue

@@ -220,6 +220,7 @@ export default {
       });
       this.clickIsFlage = true;
       this.toastLoading().clear();
+      localStorage.removeItem('visitId'); //删除上次拜访id
       this.$router.push({
         path: '/visitPage',
         query: {