diff --git a/packages/varlet-cli/site/pc/pages/index/index.vue b/packages/varlet-cli/site/pc/pages/index/index.vue index 35fb9f6999d..e0a8193cd8e 100644 --- a/packages/varlet-cli/site/pc/pages/index/index.vue +++ b/packages/varlet-cli/site/pc/pages/index/index.vue @@ -26,6 +26,7 @@ const darkMode: Ref = ref(get(config, 'pc.header.darkMode')) const title: Ref = ref(get(config, 'title')) const languages: Ref> = ref(get(config, 'pc.header.i18n')) const pack: Ref> = ref({}) +const description:Ref = ref('') const goGithub = () => { window.open(github) @@ -33,6 +34,7 @@ const goGithub = () => { const getStar = () => { const { language: lang } = getPCLocationInfo() + router.push(`/${lang}/home`) } @@ -54,6 +56,7 @@ const setLocale = () => { const { language: lang } = getPCLocationInfo() if (!lang) return + description.value = get(config, 'pc.description')[lang] as string pack.value = packs[lang] document.title = get(config, 'pc.title')[lang] as string } @@ -90,7 +93,7 @@ watch(() => route.path, setLocale, { immediate: true })