fix: 修复命令存储更新失败的问题

This commit is contained in:
Orange 2021-03-26 10:49:45 +08:00 committed by 老广
parent 22eb78339e
commit 1b223f0486

View File

@ -4,6 +4,7 @@
:create-success-next-route="successUrl"
:update-success-next-route="successUrl"
:has-detail-in-msg="false"
:after-get-form-value="afterGetFormValue"
:perform-submit="performSubmit"
/>
</template>
@ -59,6 +60,10 @@ export default {
},
methods: {
afterGetFormValue(validValues) {
validValues.meta.HOSTS = validValues.meta.HOSTS.toString()
return validValues
},
performSubmit(validValues) {
const method = this.getMethod()
validValues.meta.HOSTS = validValues.meta.HOSTS.split(',').map(item => (item.trim()))