|
@@ -71,9 +71,6 @@ export default {
|
|
await this.searchList({ status: '0' });
|
|
await this.searchList({ status: '0' });
|
|
await this.searchList({ status: '1' });
|
|
await this.searchList({ status: '1' });
|
|
await this.searchList({ status: '2' });
|
|
await this.searchList({ status: '2' });
|
|
- if (this.token) {
|
|
|
|
- this.sesstoken();
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapMutations(['setUser']),
|
|
...mapMutations(['setUser']),
|
|
@@ -115,6 +112,15 @@ export default {
|
|
return this.$route.query.token;
|
|
return this.$route.query.token;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ watch: {
|
|
|
|
+ token: {
|
|
|
|
+ immediate: true,
|
|
|
|
+ deep: true,
|
|
|
|
+ handler(val) {
|
|
|
|
+ this.sesstoken();
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
this.title = this.$route.meta.title;
|
|
this.title = this.$route.meta.title;
|
|
this.isleftarrow = this.$route.meta.isleftarrow;
|
|
this.isleftarrow = this.$route.meta.isleftarrow;
|