changes of giftCard page
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
<script setup lang="ts">
|
||||
import { menuIconSize } from '@root/config'
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
import { confirmMenuAccess } from '@/utils/adminPageAccess'
|
||||
|
||||
const router = useRouter()
|
||||
interface Props {
|
||||
@@ -25,6 +26,7 @@ interface Props {
|
||||
const props = withDefaults(defineProps<Props>(), {})
|
||||
|
||||
async function handleClickMenuItem(item: RouteRecordRaw) {
|
||||
if (!confirmMenuAccess(item.name)) return
|
||||
router.push({ name: item.name })
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user