diff --git a/index.html b/index.html index 0dec1a7..ad74099 100644 --- a/index.html +++ b/index.html @@ -5,31 +5,9 @@ <%= title %> -
-
-
-
-
diff --git a/src/components/AppPage.vue b/src/components/AppPage.vue new file mode 100644 index 0000000..693b2c3 --- /dev/null +++ b/src/components/AppPage.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/src/layout/app-main/Hamburger.vue b/src/layout/app-main/Hamburger.vue index aa6b6ca..991f0f4 100644 --- a/src/layout/app-main/Hamburger.vue +++ b/src/layout/app-main/Hamburger.vue @@ -12,10 +12,10 @@ defineProps({ default: false } }) -const emit = defineEmits(['toggleClick']) +const emit = defineEmits(['toggle-click']) //切换左侧栏关闭和隐藏 const toggleClick = () => { - emit('toggleClick') + emit('toggle-click') } diff --git a/src/layout/app-main/Navbar.vue b/src/layout/app-main/Navbar.vue index f5d1e65..bd31776 100644 --- a/src/layout/app-main/Navbar.vue +++ b/src/layout/app-main/Navbar.vue @@ -1,131 +1,164 @@ diff --git a/src/store/basic.ts b/src/store/basic.ts index d673308..a598af7 100644 --- a/src/store/basic.ts +++ b/src/store/basic.ts @@ -1,3 +1,4 @@ +import type { VNode } from 'vue' import { nextTick } from 'vue' import { defineStore } from 'pinia' import type { RouterTypes } from '~/basic' @@ -22,7 +23,12 @@ export const useBasicStore = defineStore('basic', { sidebar: { opened: true }, //axios req collection axiosPromiseArr: [] as Array, - settings: defaultSettings + settings: defaultSettings, + navbar: { + left: [] as VNode[], + right: [] as VNode[], + center: [] as VNode[] + } } }, persist: { diff --git a/src/views/menuManagement/index.vue b/src/views/menuManagement/index.vue index e436e83..39fa0ca 100644 --- a/src/views/menuManagement/index.vue +++ b/src/views/menuManagement/index.vue @@ -1,5 +1,5 @@