shish 4 лет назад
Родитель
Сommit
caa278696d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      ghsApp/src/admin/item/detail.vue

+ 1 - 1
ghsApp/src/admin/item/detail.vue

@@ -11,7 +11,7 @@
 
         <tui-list-cell class="line-cell" :hover="false">
           <div class="tui-title">花材品种</div>
-          <view style="color:red;width:450upx;height:45upx;" @click.stop="notModify">{{productData.ptItemInfo.name}}</view>
+          <view style="color:red;width:450upx;height:45upx;" @click.stop="notModify">{{productData.ptItemInfo ? productData.ptItemInfo.name : ''}}</view>
         </tui-list-cell>
 
         <tui-list-cell class="line-cell" :hover="false">