Skip to content

Commit

Permalink
修复常规设置保存不弹窗的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SHL-COOL committed Jul 10, 2022
1 parent 0dbb7c2 commit 163b6ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resource/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@
},
"base": {
"title": "常规设置",
"defaultClient": "默认下载服务器(必选)",
"defaultClient": "默认下载服务器",
"autoUpdate": "自动更新官方数据",
"save": "保存",
"allowSelectionTextSearch": "启用页面内容选择搜索",
Expand Down
9 changes: 6 additions & 3 deletions src/options/views/settings/Base/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -789,9 +789,12 @@ export default Vue.extend({
).toString();
}
},
watch: {
successMsg() {
this.haveSuccess = this.successMsg != "";
watch: {
successMsg: {
handler() {
this.haveSuccess = this.successMsg != "";
},
deep: true,
},
errorMsg() {
this.haveError = this.errorMsg != "";
Expand Down

0 comments on commit 163b6ac

Please sign in to comment.