diff --git a/package.json b/package.json index 8398b71b..292aeca6 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "devDependencies": { "@types/node": "^16.11.7", "@types/nprogress": "^0.2.0", + "@types/path-browserify": "^1.0.0", "@vitejs/plugin-vue": "^1.9.3", "sass": "^1.43.4", "typescript": "^4.4.3", diff --git a/src/api/system/menu.ts b/src/api/system/menu.ts index e866ca1b..5a506dcc 100644 --- a/src/api/system/menu.ts +++ b/src/api/system/menu.ts @@ -2,7 +2,7 @@ import request from '@/utils/request' export function getRouteList() { return request({ - url: '/youlai-admin/api/v1/menus/route', + url: '/youlai-admin/api/v2/menus/route', method: 'get' }) } \ No newline at end of file diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index c5fa2f79..40bbc32c 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -64,7 +64,7 @@ export default { return store.state.app.sidebar }) const device = computed(() => { - return store.state.app.device.toString() + return store.state.app.device }) const avatar = computed(() => { return store.state.user.avatar diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue index dd2fa83c..06c88565 100644 --- a/src/layout/components/Settings/index.vue +++ b/src/layout/components/Settings/index.vue @@ -52,7 +52,7 @@ export default defineComponent({ }) watch(() => state.sidebarLogo, (value) => { - store.dispatch('settings/changeSetting', { key: 'showSidebarLogo', value }) + store.dispatch('settings/changeSetting', { key: 'sidebarLogo', value }) }) return { diff --git a/src/layout/components/Sidebar/Link.vue b/src/layout/components/Sidebar/Link.vue index 530b3d5b..8b76b870 100644 --- a/src/layout/components/Sidebar/Link.vue +++ b/src/layout/components/Sidebar/Link.vue @@ -1,43 +1,40 @@ - +}) + \ No newline at end of file diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index 70c2f4ca..4ebe8320 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -1,47 +1,53 @@