Skip to content

Commit

Permalink
Merge pull request #409 from hamster-shared/feature/fix-bug
Browse files Browse the repository at this point in the history
set address init
  • Loading branch information
Dennisic authored Nov 13, 2023
2 parents cf534e2 + 78b291d commit 1eae8e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div v-for="(item, key) in inputData" :key="key">
<div class="grid grid-cols-2 gap-4" v-if="item.type == 'address'">
<a-form-item :label="item.name" :name="item.name+'param'" :rules="[{ required: true }]" >
<a-select @change="checkFiledChange" v-model:value="formData[item.name+'param']"
<a-select @change="checkFiledChange();formData[item.name]=''" v-model:value="formData[item.name+'param']"
placeholder="Select project contract" :options="paramList">
</a-select>
</a-form-item>
Expand Down Expand Up @@ -64,7 +64,7 @@ const formRules = computed(() => {
// };
});
const checkFiledChange = (val:any) => {
const checkFiledChange = () => {
isChange.value = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
v-for="(item, key) in methodMap.get(methodItem.formData.methodName).inputData[methodItem.formData.methodType]" :key="key">
<div class="grid grid-cols-2 gap-4" v-if="item.type == 'address'">
<a-form-item :label="item.name" :name="item.name + 'param'" :rules="[{ required: true }]" >
<a-select v-model:value="methodItem.formData[item.name + 'param']" @change="checkFiledChange"
<a-select v-model:value="methodItem.formData[item.name + 'param']" @change="checkFiledChange();methodItem.formData[item.name]=''"
placeholder="Select project contract" :options="paramList">
</a-select>
</a-form-item>
Expand Down

0 comments on commit 1eae8e1

Please sign in to comment.