ソースを参照

feat: 强制仓回显增加判断

Howie 1 年間 前
コミット
43ea1d615a
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/views/setting/other.vue

+ 2 - 2
src/views/setting/other.vue

@@ -576,8 +576,8 @@ export default {
     getStockForceDetail() {
       getStockForceDetail().then(res => {
         this.forcedHoldForm = {
-          warehouse: res.data.stockCorrespondId,
-          category: res.data.stockForceCategories.map(k => k.categoryId)
+          warehouse: res.data?.stockCorrespondId || '',
+          category: res.data?.stockForceCategories.map(k => k.categoryId) || []
         }
       })
     },