fix: 表结构更新,修复前端新增数据库端口号为string问题

This commit is contained in:
meilin.huang
2021-11-18 14:40:12 +08:00
parent 8fcdde3711
commit e8d04413f6
11 changed files with 665 additions and 465 deletions

View File

@@ -198,6 +198,7 @@ export default defineComponent({
const btnOk = async () => {
dbForm.value.validate((valid: boolean) => {
if (valid) {
state.form.port = Number.parseInt(state.form.port as any)
dbApi.saveDb.request(state.form).then(() => {
ElMessage.success('保存成功');
emit('val-change', state.form);