|
|
@@ -80,9 +80,8 @@
|
|
|
if(str == 'TheCurrentSession'){
|
|
|
this.$store.dispatch("SET_MEG", false);
|
|
|
this.megnum = 0;
|
|
|
- sessionStorage.setItem('Messagenum', 0);
|
|
|
+ this.$store.dispatch("SET_MEGNNUM",0);
|
|
|
}else {
|
|
|
- this.megnum = sessionStorage.getItem('Messagenum') -1;
|
|
|
this.$store.dispatch("SET_MEG", true);
|
|
|
}
|
|
|
|
|
|
@@ -92,21 +91,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 = this.megnum = val;
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.titleActive = this.$store.getters.get_navState;
|
|
|
this.logo = sessionStorage.getItem('logo');
|
|
|
this.showMeg = this.$store.getters.get_meg;
|
|
|
- this.megnum = sessionStorage.getItem('Messagenum')
|
|
|
+ this.megnum = this.$store.getters.get_megnum;
|
|
|
},
|
|
|
};
|
|
|
</script>
|