|
@@ -25,9 +25,10 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { onMounted, ref } from 'vue'
|
|
|
-//import { useAppStore } from '~src/store'
|
|
|
+import { useAppStore } from '~src/store'
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
import { getMenuData } from '~src/router/routers'
|
|
|
+import { initButtons } from '~store/app'
|
|
|
|
|
|
//logo文件
|
|
|
import logoPng from '~src/assets/logo/logo.png'
|
|
@@ -35,7 +36,7 @@ import logoPng from '~src/assets/logo/logo.png'
|
|
|
//初始组合式
|
|
|
const router = useRouter()
|
|
|
const useRoutes = useRoute()
|
|
|
-//const store = useAppStore()
|
|
|
+const store = useAppStore()
|
|
|
|
|
|
//子组件
|
|
|
import MenuBar from './modules/MenuBar.vue'
|
|
@@ -48,6 +49,7 @@ const menuBarData = ref([])
|
|
|
|
|
|
//渲染完成
|
|
|
onMounted(async () => {
|
|
|
+ initButtons()
|
|
|
menuBarData.value = await getMenuData()
|
|
|
})
|
|
|
|