|
@@ -79,7 +79,7 @@ import { useUserStore } from '@/stores/modules/user'
|
|
|
// ✅ 使用封装好的 Hook
|
|
// ✅ 使用封装好的 Hook
|
|
|
import { useInvoice } from '@/hooks/useInvoice'
|
|
import { useInvoice } from '@/hooks/useInvoice'
|
|
|
import type { UpdateH5IdcardInfoRequest } from '@/services/modules/identityUpload/type.d'
|
|
import type { UpdateH5IdcardInfoRequest } from '@/services/modules/identityUpload/type.d'
|
|
|
-import { areaCode } from '@/constants/faceRecognitionArea'
|
|
|
|
|
|
|
+
|
|
|
// --- 初始化 Hooks ---
|
|
// --- 初始化 Hooks ---
|
|
|
const { getStatus, submitInvoiceApply } = useInvoice()
|
|
const { getStatus, submitInvoiceApply } = useInvoice()
|
|
|
const userStore = useUserStore()
|
|
const userStore = useUserStore()
|
|
@@ -196,7 +196,7 @@ const handleNext = async () => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
// 需要人脸识别->跳转人脸识别
|
|
// 需要人脸识别->跳转人脸识别
|
|
|
// 已处理状态,跳转人脸识别
|
|
// 已处理状态,跳转人脸识别
|
|
|
- if (areaCode.includes(userStore.areaCode)) {
|
|
|
|
|
|
|
+ if (userStore.needFaceId) {
|
|
|
return router.push({ path: '/face-recognition' })
|
|
return router.push({ path: '/face-recognition' })
|
|
|
}
|
|
}
|
|
|
// 其他情况,直接提交
|
|
// 其他情况,直接提交
|