|
|
@@ -40,6 +40,7 @@ import sleep from "@/utils/sleep";
|
|
|
import {treeSearch} from "@/utils/array-utils";
|
|
|
import {useCompRef} from "@/utils/useCompRef";
|
|
|
import {ElMenu} from "element-plus";
|
|
|
+import {getUserMenu} from "@/api/settings/menu-settings";
|
|
|
|
|
|
const menuText: Ref<string> = ref('')
|
|
|
const menuRef = useCompRef(ElMenu)
|
|
|
@@ -150,6 +151,7 @@ watch(() => router.currentRoute.value, async () => {
|
|
|
|
|
|
onMounted(async () => {
|
|
|
await nextTick()
|
|
|
+ menuData.value = await getUserMenu()
|
|
|
barHeight.height = (floatingRef.value.clientHeight - logoRef.value.clientHeight - 36) + 'px'
|
|
|
await sleep(500)
|
|
|
smoothScrolling()
|