Jelajahi Sumber

fixed page jump in business

maqingyang 11 bulan lalu
induk
melakukan
2cfb7172cd
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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() {},