fix price

This commit is contained in:
2026-06-25 00:13:03 +03:30
parent 78ce8ad4b4
commit edffc5df76
5 changed files with 35 additions and 3 deletions
+6
View File
@@ -1,6 +1,7 @@
import type { RouteRecordRaw } from 'vue-router'
import { isDeployAdmin } from '@/utils/deployAdmin'
import { useUserStore } from '@/store/userStore'
import { bannerEnabledSetting } from '@/utils/config'
const Setting: RouteRecordRaw = {
name: 'settings',
@@ -67,6 +68,11 @@ const Setting: RouteRecordRaw = {
icon: 'vuesax-linear:image',
title: 'بنرها',
order: 3
},
beforeEnter() {
if (!bannerEnabledSetting.value) {
return { name: 'configuration' }
}
}
},
{