소스 검색

[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;