Jelajahi Sumber

moduleType调整

liucf 5 tahun lalu
induk
melakukan
9e08232f92
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      src/common/Label.vue

+ 3 - 2
src/common/Label.vue

@@ -12,6 +12,7 @@
 </template>
 <script type="text/javascript">
 import Toast from '../common/Toast.vue';
+import {moduleCP} from '@utils/tools';
   export default{
     name:'Label',
     data(){
@@ -79,9 +80,9 @@ import Toast from '../common/Toast.vue';
         const temp = this.tempItem;
         // 从store中取origin的值
         let origin,newItem;
-        if(this.moduleType==2){
+        if(this.moduleType==moduleCP['diagT']){
           origin = this.$store.state.diagnose.origin
-        }else if(this.moduleType == 3){
+        }else if(this.moduleType == moduleCP['other']){
           origin = this.$store.state.others.origin
         }
         if(origin){