fix(user): drop the KYC route lock so every menu stays open
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed, onMounted, ref, watch } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { useRouter } from 'vue-router'
|
||||
import BasicModal from '@/components/BasicPacks/BasicModal.vue'
|
||||
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
||||
import BasicIcon from '@/components/BasicPacks/BasicIcon.vue'
|
||||
@@ -69,9 +69,7 @@ import { useUserStore } from '@/store/userStore'
|
||||
import { getToken } from '@/utils'
|
||||
import { performUserLogout } from '@/utils/authSession'
|
||||
import { useDesktopBreakpoint } from '@/layouts/composables/useAppLayout'
|
||||
import { isCustomerIdentityVerified } from '@/utils/customerIdentity'
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
const userStore = useUserStore()
|
||||
const isDesktop = useDesktopBreakpoint()
|
||||
@@ -79,18 +77,8 @@ const isDesktop = useDesktopBreakpoint()
|
||||
const modalWidth = computed(() => (isDesktop.value ? '420px' : '90vw'))
|
||||
|
||||
const isKycRequired = computed(() => {
|
||||
if (!getToken()) return false
|
||||
if (
|
||||
route.name === 'login' ||
|
||||
route.name === 'tvMonitor' ||
|
||||
route.name === 'aboutSoftware' ||
|
||||
route.name === 'user'
|
||||
) {
|
||||
return false
|
||||
}
|
||||
const info = userStore.userInfo
|
||||
if (!info) return false
|
||||
return !isCustomerIdentityVerified(info.is_legal)
|
||||
// قفل سراسری منو برداشته شد؛ احراز روی خود عملیات (معامله، واریز، هدیه) میماند.
|
||||
return false
|
||||
})
|
||||
|
||||
const visible = ref(false)
|
||||
|
||||
Reference in New Issue
Block a user