shaun-sheep %!s(int64=4) %!d(string=hai) anos
pai
achega
965ebf1dc3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/views/legendLibrary/addForm.vue

+ 2 - 1
src/views/legendLibrary/addForm.vue

@@ -56,7 +56,7 @@
                     </el-option>
                 </el-select>
                 <el-select v-model='ruleForm.LineWidth' placeholder='请选择' size='small' style='width:160px;' ref='select' @change='changeSelection'>
-                    <el-option v-for='item in linepxOption' :key='item.id' :label='item.src' :value='item.id'>
+                    <el-option v-for='item in linepxOption' :key='item.id' :label='item.src' :value='item.id' slot>
                         <img :src='item.src' alt />
                     </el-option>
                 </el-select>
@@ -221,6 +221,7 @@ export default {
     },
     mounted() {
         console.log(this.ruleForm, 'ruleForm')
+        this.ruleForm.LineWidth = String(this.ruleForm.LineWidth)
     }
 }
 </script>