浏览代码

[bugfix]default value

jihuaqiang 2 年之前
父节点
当前提交
7470bdb016
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/view/iframe/publish/give-dialog.vue

+ 1 - 1
src/view/iframe/publish/give-dialog.vue

@@ -1383,7 +1383,7 @@ const calcIptValue = (cb) => {
  */
 const checkUsdMinNumber = (isInTemplate) => {
     let forbiddenText = '';
-    const { usdPrice, luckdropPostConfig } = currentCurrencyInfo.value;
+    const { usdPrice, luckdropPostConfig = [] } = currentCurrencyInfo.value;
     let currentLuckDropConfig = luckdropPostConfig.find(item => item.luckdropType === selectModeInfo.type);
     if (baseFormData.rewardType === RewardType.money && currentLuckDropConfig?.usdLimitEnable === 1) {
         const { amountValue, totalCount } = baseFormData;