zhouna hace 5 años
padre
commit
aafb501f51
Se han modificado 2 ficheros con 4 adiciones y 0 borrados
  1. 1 0
      src/components/MainPage.vue
  2. 3 0
      src/store.js

+ 1 - 0
src/components/MainPage.vue

@@ -395,6 +395,7 @@ export default {
       this.showUsual=true;
       this.canceledSym = true;
       this.type=-1;
+      this.$store.commit("clearDeledBuried");     //症状修改删除原埋点暂存数据
       this.$store.commit('setChoose', { choose: [], type: moduleCP['symp'] });
     },
     selectUsual(sym){

+ 3 - 0
src/store.js

@@ -67,6 +67,9 @@ const store = new Vuex.Store({
     setShowDoctor(state,flag){
       state.showDoctor=flag;
     },
+    clearDeledBuried(state){
+      state.addBuriedSomeList=[];
+    },
     addBuriedSome(state,item){
       let list = state.addBuriedSomeList,num=0
       for(let i = 0;i < list.length;i++){