Skip to content

Commit

Permalink
fix(welcomePage): 修复路由添加 welcomePage 时,自定义数据未覆盖默认数据
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Nov 18, 2024
1 parent b3c5d8b commit 1163ca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/store/modules/useRouteStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import usePluginStore from '@/store/modules/usePluginStore.ts'
const useRouteStore = defineStore(
'useRouteStore',
() => {
const settingsStore = useSettingStore()
const defaultSetting = ref<SystemSettings.all>(useDefaultSetting())
// 原始路由
const routesRaw = ref<RouteRecordRaw[]>([])
const flatteningRoutesList = ref<RouteRecordRaw[]>([])
Expand Down Expand Up @@ -51,7 +51,7 @@ const useRouteStore = defineStore(
}

function getMineRootLayoutRoute(): RouteRecordRaw {
const welcomePage: SystemSettings.welcomePage = settingsStore.getSettings('welcomePage')
const welcomePage: SystemSettings.welcomePage = defaultSetting.value.welcomePage
return {
name: 'MineRootLayoutRoute',
path: '/',
Expand Down

0 comments on commit 1163ca4

Please sign in to comment.