Pārlūkot izejas kodu

fixed page jump in business

maqingyang 11 mēneši atpakaļ
vecāks
revīzija
7eb136c189
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      src/views/system/business.vue

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

@@ -153,11 +153,12 @@ 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() {},