|
|
@@ -91,16 +91,18 @@ export default {
|
|
|
// console.log(e);
|
|
|
// this.$toast(e.error);
|
|
|
// });
|
|
|
- if (this.$route.query.active) {
|
|
|
- this.active = Number(this.$route.query.active);
|
|
|
- if (this.active == 2) {
|
|
|
- this.listKey = 'content';
|
|
|
- } else {
|
|
|
- this.listKey = '';
|
|
|
+ this.checkLogin().then(() => {
|
|
|
+ if (this.$route.query.active) {
|
|
|
+ this.active = Number(this.$route.query.active);
|
|
|
+ if (this.active == 2) {
|
|
|
+ this.listKey = 'content';
|
|
|
+ } else {
|
|
|
+ this.listKey = '';
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- this.$nextTick(() => {
|
|
|
- this.getData(true);
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.getData(true);
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -120,18 +122,20 @@ export default {
|
|
|
this.chooseTicket = type;
|
|
|
},
|
|
|
changeTab() {
|
|
|
- this.clear();
|
|
|
- this.$router.replace({
|
|
|
- query: {
|
|
|
- active: this.active
|
|
|
+ this.checkLogin().then(() => {
|
|
|
+ this.clear();
|
|
|
+ this.$router.replace({
|
|
|
+ query: {
|
|
|
+ active: this.active
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (this.active == 2) {
|
|
|
+ this.listKey = 'content';
|
|
|
+ } else {
|
|
|
+ this.listKey = '';
|
|
|
}
|
|
|
+ this.getData(true);
|
|
|
});
|
|
|
- if (this.active == 2) {
|
|
|
- this.listKey = 'content';
|
|
|
- } else {
|
|
|
- this.listKey = '';
|
|
|
- }
|
|
|
- this.getData(true);
|
|
|
},
|
|
|
clear() {
|
|
|
this.chooseTicket = '';
|