Explorar o código

fixed page jump in business

maqingyang hai 11 meses
pai
achega
2cfb7172cd
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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() {},