Browse Source

update src/

luke 6 năm trước cách đây
mục cha
commit
52235e1345
1 tập tin đã thay đổi với 12 bổ sung12 xóa
  1. 12 12
      service/src/components/leftNav.vue

+ 12 - 12
service/src/components/leftNav.vue

@@ -78,7 +78,6 @@
 					path = "/" + str
 				}
 				if(str == 'TheCurrentSession'){
-					this.megnum = 0;
 					this.$store.dispatch("SET_MEG", false);
 				}else {
 					this.$store.dispatch("SET_MEG", true);
@@ -90,20 +89,21 @@
 			}
 		},
 
-		computed: {
-			getTitleActive() {
-				return this.$store.getters.get_megnum
-			}
-		},
-		watch: {
-			getTitleActive(val){
-				this.megnum = val;
-			}
-		},
+		// computed: {
+		// 	getTitleActive() {
+		// 		return this.$store.getters.get_megnum
+		// 	}
+		// },
+		// watch: {
+		// 	getTitleActive(val){
+		// 		this.megnum = val;
+		// 	}
+		// },
 		mounted() {
 			this.titleActive = this.$store.getters.get_navState;
 			this.logo = sessionStorage.getItem('logo');
-			this.showMeg = this.$store.getters.get_meg
+			this.showMeg = this.$store.getters.get_meg;
+			this.megnum = this.$store.getters.get_megnum
 		},
 	};
 </script>