fix: 上线前修改

This commit is contained in:
anonymous
2025-01-10 19:13:58 +08:00
parent 17eb27bfa6
commit 348d06eadb
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -123,7 +123,7 @@
<script setup lang="ts">
import { getRealNameAuthAPI, realNameAuthAPI } from '@/service'
import { useUserStore } from '@/store'
import { showModal } from '@/utils'
import { mergeStep, showModal } from '@/utils'
import { ref } from 'vue'
const userStore = useUserStore()
@@ -137,7 +137,7 @@ const onBack = () => {
uni.navigateBack()
}
const onSubmit = async () => {
const onSubmit = mergeStep(async () => {
if (!/^[\u4e00-\u9fa5·]{2,8}$/.test(form.value.realname)) {
await showModal('姓名格式错误')
return
@@ -160,7 +160,7 @@ const onSubmit = async () => {
realnameInfo.value = await getRealNameAuthAPI().then((res) => {
return res.data
})
}
})
const onGoHome = () => {
uni.reLaunch({