wolyshaw 4 rokov pred
rodič
commit
630fad8169

+ 1 - 1
src/components/tabs/index.vue

@@ -42,7 +42,7 @@ export default {
   mounted() {
   mounted() {
     this.getAllPanel()
     this.getAllPanel()
     if (this.panels.length) {
     if (this.panels.length) {
-      this.active = this.panels[0].child?.name
+      this.active = this.$route.query[this.searchKey] || this.panels[0].child?.name
     }
     }
   }
   }
 }
 }

+ 1 - 1
src/views/save-form-test/index.vue

@@ -13,7 +13,7 @@
         <el-form-item
         <el-form-item
           prop="input2"
           prop="input2"
         >
         >
-          <el-input v-model="form.input2" placeholder="请输入内容2"/>
+          <el-input type="number" v-model="form.input2" placeholder="请输入内容2"/>
         </el-form-item>
         </el-form-item>
         <el-form-item prop="region">
         <el-form-item prop="region">
           <el-select v-model="form.region" placeholder="请选择活动区域">
           <el-select v-model="form.region" placeholder="请选择活动区域">