Skip to content

Commit

Permalink
fix none case
Browse files Browse the repository at this point in the history
  • Loading branch information
050644zf committed Oct 11, 2024
1 parent c9d3ee0 commit 273c141
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion reader/src/ASTRv2/contentpage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion reader/src/ASTRv2/func.js
Original file line number Diff line number Diff line change
Expand Up @@ -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("-", "_");
Expand Down
2 changes: 1 addition & 1 deletion reader/src/ASTRv2/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</n-icon>
{{ $t('settings.altLang') }}:
<n-radio-group v-model:value="altLang">
<n-radio-button :key="NULL" :value="null">
<n-radio-button :key="NULL" value="none">
{{ $t('settings.none') }}
</n-radio-button>
<n-radio-button v-for="lang in langOpts" :key="lang" :value="lang">
Expand Down

0 comments on commit 273c141

Please sign in to comment.