edit SMSpanel
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
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'
|
||||
|
||||
@@ -71,6 +72,23 @@ const Setting: RouteRecordRaw = {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'smsPanelMain',
|
||||
path: 'sms-panel',
|
||||
component: () => import('@/pages/menuPages/smsPanel/index.vue'),
|
||||
meta: {
|
||||
icon: 'vuesax-linear:wallet-3',
|
||||
title: 'پنل پیامک',
|
||||
order: 3.5,
|
||||
requiresSmsPanelAccess: true
|
||||
},
|
||||
beforeEnter() {
|
||||
const userStore = useUserStore()
|
||||
if (!hasSmsPanelAccess(userStore.userInfo)) {
|
||||
return { name: 'configuration' }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'banners',
|
||||
path: 'banners',
|
||||
|
||||
Reference in New Issue
Block a user