From 273c14171ef79a2b27da2313166f07c8aed2d09c Mon Sep 17 00:00:00 2001 From: Nightsky <050644zf@outlook.com> Date: Fri, 11 Oct 2024 16:32:05 +0800 Subject: [PATCH] fix none case --- reader/src/ASTRv2/contentpage.vue | 2 +- reader/src/ASTRv2/func.js | 2 +- reader/src/ASTRv2/settings.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reader/src/ASTRv2/contentpage.vue b/reader/src/ASTRv2/contentpage.vue index 5895047..a0f6475 100644 --- a/reader/src/ASTRv2/contentpage.vue +++ b/reader/src/ASTRv2/contentpage.vue @@ -265,7 +265,7 @@ export default { ); let s = await res.json(); let altserver = func.alt; - if (altserver){ + if (altserver != "none"){ try{ let res2 = await fetch( diff --git a/reader/src/ASTRv2/func.js b/reader/src/ASTRv2/func.js index 64f9dfc..c83b3e7 100644 --- a/reader/src/ASTRv2/func.js +++ b/reader/src/ASTRv2/func.js @@ -56,7 +56,7 @@ if (!server) { server = "zh_CN"; } if (!alt) { - alt = null; + alt = 'none'; } if (!l || l == "none" || l == "Default") { l = navigator.language.replace("-", "_"); diff --git a/reader/src/ASTRv2/settings.vue b/reader/src/ASTRv2/settings.vue index 0173856..751d25b 100644 --- a/reader/src/ASTRv2/settings.vue +++ b/reader/src/ASTRv2/settings.vue @@ -34,7 +34,7 @@ {{ $t('settings.altLang') }}: - + {{ $t('settings.none') }}