From 9338fc6dded6016963bdedc4768945acd2d01f0c Mon Sep 17 00:00:00 2001 From: Kuingsmile Date: Mon, 1 Jan 2024 23:24:53 -0800 Subject: [PATCH] :sparkles: Feature(custom): manual url will be based on lanaguage setting --- src/renderer/layouts/Main.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/layouts/Main.vue b/src/renderer/layouts/Main.vue index 383c599..37b210c 100644 --- a/src/renderer/layouts/Main.vue +++ b/src/renderer/layouts/Main.vue @@ -327,8 +327,9 @@ const handleSelect = async (index: string) => { defaultActive.value = index if (index === routerConfig.DocumentPage) { const manualPageOpenSetting = await getConfig('settings.manualPageOpen') + const lang = await getConfig('settings.language') || 'zh-CN' const openManual = () => ipcRenderer.send('openManualWindow') - const openExternal = () => openURL('https://piclist.cn/app.html') + const openExternal = () => openURL(lang === 'zh-CN' ? 'https://piclist.cn/app.html' : 'https://piclist.cn/en/app.html') if (!manualPageOpenSetting) { ElMessageBox.confirm($T('MANUAL_PAGE_OPEN_TIP'), $T('MANUAL_PAGE_OPEN_TIP_TITLE'), {