Skip to content

Commit

Permalink
fix(sidebar): sidebar language switch and config save issue (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed Dec 20, 2023
1 parent 855f6c2 commit 7a026ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/packages/artalk-sidebar/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ onBeforeMount(() => {
// 获取语言
if (!global.getBootParams().locale) {
global.getArtalk().ctx.getApi().system.conf().then(resp => {
if (resp.frontend_conf?.locale == 'string') {
if (typeof resp.frontend_conf?.locale === 'string') {
i18n.locale.value = resp.frontend_conf.locale
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ onBeforeMount(() => {
})
function onChange() {
const v = patchOptionValue(props.node, props.node)
const v = patchOptionValue(value.value, props.node)
settings.get().setCustom(props.node.path, v)
console.log('[SET]', props.node.path, v)
}
Expand Down

0 comments on commit 7a026ef

Please sign in to comment.