Prechádzať zdrojové kódy

fixed page jump in business

maqingyang 11 mesiacov pred
rodič
commit
2cfb7172cd
1 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  1. 1 2
      src/views/system/business.vue

+ 1 - 2
src/views/system/business.vue

@@ -153,12 +153,11 @@ export default {
   computed: {},
   beforeCreate() {},
   created() {
-  
+    this.activeIndex = this.$route.query.activeIndex || 1; // 使用默认值 1
   },
   beforeMount() {},
   mounted()
   {
-    this.activeIndex = this.$route.query.activeIndex || 1; // 使用默认值 1
     this.handleMenuSelect(this.activeIndex);
   },
   beforeUpdate() {},