From 6efec4c0eeba354b246a33d4b21077d363c38eb3 Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Thu, 5 Dec 2024 11:33:16 +0800 Subject: [PATCH] feat: change default router link --- examples/sites/src/router.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sites/src/router.js b/examples/sites/src/router.js index fbf2e013e0..c163e6886d 100644 --- a/examples/sites/src/router.js +++ b/examples/sites/src/router.js @@ -1,6 +1,6 @@ import { createRouter, createWebHistory } from 'vue-router' import Layout from '@/views/layout/layout.vue' -import { LANG_KEY, LANG_PATH_MAP, ZH_CN_LANG, CURRENT_THEME_KEY, THEME_ROUTE_MAP, SMB_THEME } from './const' +import { LANG_KEY, LANG_PATH_MAP, ZH_CN_LANG, CURRENT_THEME_KEY, THEME_ROUTE_MAP, DEFAULT_THEME } from './const' import { $local } from './tools/storage' const Components = () => import('@/views/components/components.vue') @@ -38,7 +38,7 @@ let routes = [ const lang = $local[LANG_KEY] const langPath = LANG_PATH_MAP[lang] || LANG_PATH_MAP[ZH_CN_LANG] const themeKey = localStorage.getItem(CURRENT_THEME_KEY) - const theme = THEME_ROUTE_MAP[themeKey] || THEME_ROUTE_MAP[SMB_THEME] + const theme = THEME_ROUTE_MAP[themeKey] || THEME_ROUTE_MAP[DEFAULT_THEME] return { path: `${context}${langPath}/${theme}/overview` } } }