now menu is have initial value

This commit is contained in:
Geriano
2022-07-18 20:05:22 +07:00
parent dae42a4657
commit 8f48fa7d64
3 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ import Icon from '@/Components/Icon.vue'
import Swal from 'sweetalert2'
const self = getCurrentInstance()
const menus = ref([])
const menus = ref(usePage().props.value.$menus || [])
const { user } = usePage().props.value
const fetch = async () => {