diff --git a/components/common/BackPage.vue b/components/common/BackPage.vue new file mode 100644 index 00000000..9a6f7fbe --- /dev/null +++ b/components/common/BackPage.vue @@ -0,0 +1,86 @@ + + + + + + + diff --git a/components/default/Footer.vue b/components/default/Footer.vue index 7d99b379..bd740815 100644 --- a/components/default/Footer.vue +++ b/components/default/Footer.vue @@ -20,7 +20,7 @@ const goGithub = () => { } const goAbout = () => { - window.open("https://blog.terwer.space/about") + window.open("https://terwer.space/about") } // methods @@ -44,9 +44,9 @@ const goHome = async () => { {{ t("syp.about") }} . - {{ - colorMode ? t("theme.mode.light") : t("theme.mode.dark") - }} + + {{ colorMode ? t("theme.mode.light") : t("theme.mode.dark") }} + diff --git a/locales/en_US.ts b/locales/en_US.ts index 6fe655f4..265f3e1e 100644 --- a/locales/en_US.ts +++ b/locales/en_US.ts @@ -98,4 +98,7 @@ export default { "share.accessCodeEnabled.tip": "Special note: If you have enabled the authorization code after detection, please know if the document or settings are updated and need to be shared again.", "share.public.tip": "Currently in public sharing mode", + "share.static.tip": + "Gentle reminder: Should access prove elusive, consider IP switching. In environments beyond 127.0.0.1, kindly navigate to Settings->About->Network Servers to initiate server activation.", + "share.setting": "Setting", } diff --git a/locales/zh_CN.ts b/locales/zh_CN.ts index 25341fde..86d348f1 100644 --- a/locales/zh_CN.ts +++ b/locales/zh_CN.ts @@ -95,4 +95,7 @@ export default { "change.ip.title": "切换IP", "share.accessCodeEnabled.tip": "特别提示:为安全起见,1.9.0+ 将使用静态分享,若文档有更新,需重新分享,请知悉。", "share.public.tip": "当前处于公共分享模式", + "share.static.tip": + "温馨提示:如果无法访问可通过切换IP(PC客户端)、或者在下方「偏好设置->设置自定义域名」(Docker)解决,外网访问需在「设置->关于->网络伺服」打开伺服", + "share.setting": "偏好设置", } diff --git a/pages/setting.vue b/pages/setting.vue index a42958ca..767262e5 100644 --- a/pages/setting.vue +++ b/pages/setting.vue @@ -24,6 +24,8 @@ --> diff --git a/pages/share.vue b/pages/share.vue index e6397721..c52f21fb 100644 --- a/pages/share.vue +++ b/pages/share.vue @@ -58,6 +58,7 @@ const id = useRouteQuery("id", "") const origin = useRouteQuery("origin", "") const isSsr = useRouteQuery("isSsr", "") const basePath = String(isSsr.value) === "true" ? "/plugins/siyuan-blog" : "/plugins/siyuan-blog/#" +const route = useRouter() // lifecycles onMounted(async () => { @@ -108,7 +109,6 @@ const goHelp = async () => { const copyWebLink = () => { handleMethod(() => { copy(formData.shareLink) - ElMessage.info("注意:如果是非 127.0.0.1 环境,请通过 设置->关于->网络伺服 打开伺服") }) } @@ -208,6 +208,10 @@ const handleIpChange = (val: string) => { url.hostname = val formData.shareLink = url.toString() } + +const goSetting = () => { + route.push("/setting?showBack=true") +}