|
@@ -57,11 +57,18 @@ export default {
|
|
return `wait-task-${this.curTab}`;
|
|
return `wait-task-${this.curTab}`;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
- this.initTabs();
|
|
|
|
- if (this.$route.query.type) {
|
|
|
|
- this.curTab = this.$route.query.type;
|
|
|
|
- }
|
|
|
|
|
|
+ watch: {
|
|
|
|
+ waitTypes: {
|
|
|
|
+ immediate: true,
|
|
|
|
+ handler(val) {
|
|
|
|
+ if (!val) return;
|
|
|
|
+
|
|
|
|
+ this.initTabs();
|
|
|
|
+ if (this.$route.query.type) {
|
|
|
|
+ this.curTab = this.$route.query.type;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ },
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
initTabs() {
|
|
initTabs() {
|