Fix bug
This commit is contained in:
parent
6967def6c8
commit
98a2953c9c
|
@ -43,10 +43,17 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
document.cookie = `i=${this.$store.state.i.token}`;
|
||||||
this.$watch('$store.state.i', () => {
|
this.$watch('$store.state.i', () => {
|
||||||
if (this.$store.state.i.twitter) {
|
if (this.$store.state.i.twitter) {
|
||||||
if (this.twitterForm) this.twitterForm.close();
|
if (this.twitterForm) this.twitterForm.close();
|
||||||
}
|
}
|
||||||
|
if (this.$store.state.i.discord) {
|
||||||
|
if (this.discordForm) this.discordForm.close();
|
||||||
|
}
|
||||||
|
if (this.$store.state.i.github) {
|
||||||
|
if (this.githubForm) this.githubForm.close();
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
deep: true
|
deep: true
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue