shish 9 месяцев назад
Родитель
Сommit
a780db01d7
1 измененных файлов с 1 добавлено и 5 удалено
  1. 1 5
      hdApp/src/admin/goods/add.vue

+ 1 - 5
hdApp/src/admin/goods/add.vue

@@ -41,7 +41,7 @@
 
 
         <tui-list-cell class="line-cell" :hover="false">
         <tui-list-cell class="line-cell" :hover="false">
           <view class="tui-title required">名称</view>
           <view class="tui-title required">名称</view>
-          <input v-model="form.name" placeholder-class="phcolor" class="tui-input" name="name" placeholder="请输入商品名称" maxlength="50" type="text" @focus="clearNameInput" />
+          <input v-model="form.name" placeholder-class="phcolor" class="tui-input" name="name" placeholder="请输入商品名称" maxlength="50" type="text" />
         </tui-list-cell>
         </tui-list-cell>
 
 
         <tui-list-cell class="line-cell" :hover="false">
         <tui-list-cell class="line-cell" :hover="false">
@@ -287,10 +287,6 @@ export default {
         this.form.catIds.splice(index, 1);
         this.form.catIds.splice(index, 1);
       }
       }
     },
     },
-    // 名称输入框聚焦时清空
-    clearNameInput() {
-      this.form.name = "";
-    },
     // 设置价格类型
     // 设置价格类型
     setPriceType(type) {
     setPriceType(type) {
       this.form.priceType = type;
       this.form.priceType = type;