wolyshaw 4 years ago
parent
commit
630fad8169
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/components/tabs/index.vue
  2. 1 1
      src/views/save-form-test/index.vue

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

@@ -42,7 +42,7 @@ export default {
   mounted() {
     this.getAllPanel()
     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
           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 prop="region">
           <el-select v-model="form.region" placeholder="请选择活动区域">