luke 6 gadi atpakaļ
vecāks
revīzija
454a42de3a
1 mainītis faili ar 13 papildinājumiem un 10 dzēšanām
  1. 13 10
      service/src/components/leftNav.vue

+ 13 - 10
service/src/components/leftNav.vue

@@ -79,6 +79,9 @@
 				}
 				if(str == 'TheCurrentSession'){
 					this.$store.dispatch("SET_MEG", false);
+					this.megnum = 0;
+					this.$store.dispatch("SET_MEGNNUM", this.megnum);
+					sessionStorage.removeItem('Messagenum');
 				}else {
 					this.$store.dispatch("SET_MEG", true);
 				}
@@ -89,16 +92,16 @@
 			}
 		},
 
-		computed: {
-			getTitleActive() {
-				return this.$store.getters.get_megnum
-			}
-		},
-		watch: {
-			getTitleActive(val){
-				this.megnum = this.megnum = val;
-			}
-		},
+		// computed: {
+		// 	getTitleActive() {
+		// 		return this.$store.getters.get_megnum
+		// 	}
+		// },
+		// watch: {
+		// 	getTitleActive(val){
+		// 		this.megnum = this.megnum = val;
+		// 	}
+		// },
 		mounted() {
 			this.titleActive = this.$store.getters.get_navState;
 			this.logo = sessionStorage.getItem('logo');