Переглянути джерело

初始化不能为假,否则不能显示二维码

lifanagju_citu 5 місяців тому
батько
коміт
e034e014f0
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/views/mall/components/details/order/pay.vue

+ 1 - 1
src/views/mall/components/details/order/pay.vue

@@ -263,7 +263,7 @@ const getPayStatus = async () => {
 
 // 倒计时
 const countdownTime = 60000 * 3 // 倒计时三分钟
-let remainder = 0 // number
+let remainder = true // number 初始化不能为假,否则不能显示二维码
 const remainderZhShow = ref('') // 倒计时展示
 
 const remainderTimer = ref(null)