Эх сурвалжийг харах

fix: 修复\n换行符问题

(cherry picked from commit 7ebead88a1062d9bbbcf4e19a0af186fcaaa45f2)
liangan 2 өдөр өмнө
parent
commit
0c78b75d50

+ 1 - 1
src/components/DialogBox/DialogBox.vue

@@ -101,7 +101,7 @@ function handleCancel() {
             :src="iconSrc"
             :style="{ width: props.iconSize, height: props.iconSize }"
           />
-          <view class="pb-58rpx pt-34rpx text-center text-32rpx">
+          <view class="whitespace-pre-line pb-58rpx pt-34rpx text-center text-32rpx">
             {{ props.message }}
           </view>
         </slot>

+ 2 - 2
src/locale/en.json

@@ -407,7 +407,7 @@
   "wallet.recharge.enterAmount": "Please enter recharge amount",
   "wallet.recharge.minAmount": "Min {minAmount}",
   "wallet.recharge.maxAmount": "Max {maxAmount}",
-  "orderDetail.rechargeDialog.title": "Your wallet balance is insufficient.\\nPlease Recharge!",
+  "orderDetail.rechargeDialog.title": "Your wallet balance is insufficient.\nPlease Recharge!",
   "orderDetail.rechargeDialog.confirm": "Recharge Now",
   "orderDetail.payDialog.title": "Payment",
   "orderDetail.payDialog.confirm": "Pay Now",
@@ -416,7 +416,7 @@
   "orderDetail.time.shipped": "Shipped On",
   "orderDetail.time.completed": "Completed On",
   "orderDetail.copy.success": "Copied to clipboard",
-  "wallet.unpaidOrderDialog.title": "You have unfinished top up orders,\\nDo you want to continue?",
+  "wallet.unpaidOrderDialog.title": "You have unfinished top up orders,\nDo you want to continue?",
   "wallet.unpaidOrderDialog.confirm": "View",
   "wallet.unpaidOrderDialog.cancel": "Cancel",
   "wallet.record.type.DT": "DT",