Showing
2 changed files
with
5 additions
and
2 deletions
| ... | ... | @@ -154,6 +154,7 @@ |
| 154 | 154 | defaultRuleChainId: editData.value.defaultRuleChainId, |
| 155 | 155 | defaultQueueName: editData.value.defaultQueueName, |
| 156 | 156 | description: editData.value.description, |
| 157 | + image: editData.value.image, | |
| 157 | 158 | }); |
| 158 | 159 | } else if (isUpdate.value == 3) { |
| 159 | 160 | handleCancel(); |
| ... | ... | @@ -167,6 +168,7 @@ |
| 167 | 168 | defaultRuleChainId: editData.value.defaultRuleChainId, |
| 168 | 169 | defaultQueueName: editData.value.defaultQueueName, |
| 169 | 170 | description: editData.value.description, |
| 171 | + image: editData.value.image, | |
| 170 | 172 | }); |
| 171 | 173 | } |
| 172 | 174 | }); | ... | ... |
| ... | ... | @@ -15,7 +15,7 @@ |
| 15 | 15 | > |
| 16 | 16 | <img |
| 17 | 17 | v-if="peresonalPic" |
| 18 | - :src="peresonalPic ? peresonalPic : echoPic" | |
| 18 | + :src="peresonalPic !== '' ? peresonalPic : echoPic" | |
| 19 | 19 | alt="avatar" |
| 20 | 20 | style="width: 6.25rem; height: 6.25rem" |
| 21 | 21 | /> |
| ... | ... | @@ -70,11 +70,12 @@ |
| 70 | 70 | //回显数据 |
| 71 | 71 | const setStepOneFieldsValueFunc = (v) => { |
| 72 | 72 | setFieldsValue(v); |
| 73 | + console.log(v); | |
| 73 | 74 | if (v.image !== null) { |
| 74 | 75 | echoPic.value = v.image; |
| 75 | 76 | } |
| 76 | 77 | }; |
| 77 | - const peresonalPic = ref(); | |
| 78 | + const peresonalPic = ref(''); | |
| 78 | 79 | |
| 79 | 80 | const resetIconFunc = () => { |
| 80 | 81 | peresonalPic.value = ''; | ... | ... |