Skip to content

Commit

Permalink
Merge pull request #28 from ronggang/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Bright-W authored Jul 14, 2022
2 parents 52cd2cc + 638c443 commit d317a2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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
10 changes: 6 additions & 4 deletions src/options/views/settings/Base/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,6 @@ export default Vue.extend({
if (!(this.$refs.form as any).validate()) {
this.activeTab = "base";
(this.$refs.defaultClient as any).focus();
return;
}
if (!this.options.apiKey) {
Expand Down Expand Up @@ -790,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 d317a2e

Please sign in to comment.