fix bugs and added some feature for withdraw handling
This commit is contained in:
@@ -2,7 +2,7 @@ import type { RouteRecordRaw } from 'vue-router'
|
||||
import { isDeployAdmin } from '@/utils/deployAdmin'
|
||||
import { hasSmsPanelAccess } from '@/utils/smsPanelAccess'
|
||||
import { useUserStore } from '@/store/userStore'
|
||||
import { bannerEnabledSetting } from '@/utils/config'
|
||||
import { bannerEnabledSetting, trackingSystemsEnabledSetting } from '@/utils/config'
|
||||
|
||||
const Setting: RouteRecordRaw = {
|
||||
name: 'settings',
|
||||
@@ -52,6 +52,11 @@ const Setting: RouteRecordRaw = {
|
||||
icon: 'vuesax-linear:global',
|
||||
title: 'سایتهای ریگیری',
|
||||
order: 2
|
||||
},
|
||||
beforeEnter() {
|
||||
if (!trackingSystemsEnabledSetting.value) {
|
||||
return { name: 'configuration' }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user