zhb 1 vecka sedan
förälder
incheckning
9f32d6064c

+ 5 - 2
components/cwg-email-code-popup.vue

@@ -31,7 +31,7 @@
 </template>
 
 <script setup lang="ts">
-import { ref, computed, onBeforeUnmount } from "vue";
+import { ref, computed, onBeforeUnmount, watch } from "vue";
 import { showToast } from "@/utils/toast";
 import { useI18n } from "vue-i18n";
 import { useEmailCountdown } from '@/hooks/useEmailCountdown';
@@ -42,7 +42,7 @@ const {
   start,
   restore
 } = useEmailCountdown({ storageKey: 'emailCodeTimer' })
-const { t } = useI18n();
+const { t, locale } = useI18n();
 const props = defineProps({
   visible: {
     type: Boolean,
@@ -104,6 +104,9 @@ const rules = computed(() => ({
     ],
   },
 }))
+watch(locale, () => {
+    formRef1.value?.clearValidate()
+})
 
 // 发送邮箱验证码
 async function sendEmailCode() {

+ 1 - 1
pages/customer/components/DepositCheckConfirmPopup.vue

@@ -162,7 +162,7 @@
 </template>
 
 <script setup>
-import { ref, computed } from 'vue';
+import { ref, computed, watch } from 'vue';
 import { useI18n } from 'vue-i18n';
 
 const props = defineProps({

+ 1 - 1
pages/customer/wallet-transfer.vue

@@ -58,7 +58,7 @@
 </template>
 
 <script setup lang="ts">
-import { ref, reactive, computed, onMounted } from 'vue'
+import { ref, reactive, computed, onMounted, watch } from 'vue'
 import { useI18n } from 'vue-i18n'
 import { customApi } from '@/service/custom'
 import { drawApi } from '@/service/draw'

+ 2 - 2
pages/follow/trading-center.vue

@@ -181,7 +181,7 @@
 </template>
 
 <script setup lang="ts">
-import { computed, ref, nextTick, onMounted, onUnmounted } from 'vue'
+import { computed, ref, nextTick, onMounted, onUnmounted, watch } from 'vue'
 import { useI18n } from 'vue-i18n'
 import { documentaryApi } from '@/service/documentary'
 import useUserStore from '@/stores/use-user-store'
@@ -386,7 +386,7 @@ const currentColumns = computed(() => [
   { prop: 'activity', label: t('TradingCenter.item8'), slot: 'activity', align: 'center', sortable: true },
   { prop: 'view', label: t('Documentary.tradingCenter.item23'), slot: 'view', align: 'center', width: 80 },
   // { prop: 'recommendReason', label: t('Documentary.tradingCenter.item142'), align: 'center', width: 100 },
-  { prop: 'subscribe', label: t('Documentary.tradingCenter.item24'), slot: 'subscribe', align: 'center', width: 100 },
+  { prop: 'subscribe', label: t('Documentary.tradingCenter.item24'), slot: 'subscribe', align: 'center' },
 ])
 const mobilePrimaryFields = computed(() => [
   { prop: 'nickname', label: t('Documentary.tradingCenter.item1'), align: 'center' },

+ 1 - 1
pages/follow/transfer.vue

@@ -52,7 +52,7 @@
 </template>
 
 <script setup lang="ts">
-import { ref, reactive, computed, onMounted } from 'vue'
+import { ref, reactive, computed, onMounted, watch } from 'vue'
 import { useI18n } from 'vue-i18n'
 import { customApi } from '@/service/custom'
 import { documentaryApi } from '@/service/documentary'