Skip to content

Commit

Permalink
Merge pull request #1081 from SHL-COOL/dev
Browse files Browse the repository at this point in the history
取消常规设置必须选择默认下载服务器才能保存数据的限制
  • Loading branch information
ted423 committed Jul 12, 2022
2 parents 8dc04de + 163b6ac commit 638c443
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 638c443

Please sign in to comment.