Skip to content

Commit

Permalink
bugfix: 文件上传设置的允许范围可以填入空格 TencentBlueKing#1539
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx committed Dec 2, 2022
2 parents 0a9f900 + 92f4648 commit ca6e39d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@vue/composition-api": "^1.5.0",
"ace-builds": "^1.4.12",
"axios": "^0.27.2",
"bk-magic-vue": "2.5.3-beta.12",
"bk-magic-vue": "2.5.3-beta.13",
"core-js": "^3.22.4",
"cron-parser-custom": "^2.13.0",
"diff": "^5.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<bk-radio-group
v-model="info.restrictMode"
class="restrict-mode-radio"
@change="handleRestSuffixError">
@change="handleRestrictModeChange">
<bk-radio-button :value="-1">
{{ $t('setting.不限制') }}
</bk-radio-button>
Expand All @@ -75,10 +75,10 @@
<jb-form-item>
<bk-tag-input
:key="info.restrictMode"
v-model="info.suffixList"
allow-create
has-delete-icon
@change="handleRestSuffixError" />
:value="info.suffixList"
@change="handleSuffixChange" />
</jb-form-item>
<div
class="form-item-error"
Expand Down Expand Up @@ -187,9 +187,13 @@
this.isLoading = false;
});
},
handleRestSuffixError () {
handleRestrictModeChange () {
this.suffixError = '';
},
handleSuffixChange (tagList) {
this.suffixError = '';
this.info.suffixList = tagList.map(tagItem => tagItem.replace(/ /g, ''));
},
/**
* @desc 提交修改
*/
Expand Down

0 comments on commit ca6e39d

Please sign in to comment.