fix(项目设置): 修复通用设置切换类型,值没用跟着改变的缺陷

--bug=1018550 --user=王孝刚 【项目设置】环境配置-通用设置修改常量/列表类型为随机数/计数器类型,值没有发生改变
https://www.tapd.cn/55049933/s/1352771
This commit is contained in:
wxg0103 2023-03-20 12:02:11 +08:00 committed by wxg0103
parent 9694ad7768
commit 191482cec3
1 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,8 @@
v-model="scope.row.type"
v-if="!scope.row.scope || scope.row.scope == 'api'"
:placeholder="$t('commons.please_select')"
size="mini">
size="mini"
@change="changeType(scope.row)">
<el-option v-for="item in typeSelectOptions" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
@ -311,6 +312,7 @@ export default {
// TODO key
},
changeType(data) {
console.log(data);
data.value = '';
if (!data.delimiter || (!data.files && data.files.length === 0) || !data.quotedData) {
data.delimiter = ',';