Commit 83bef069 by qinjianhui

fix: 问题修改

parent cc77fa5a
......@@ -568,9 +568,9 @@ export default {
const l = this.$loading({
background: 'rgba(0, 0, 0, 0.3)',
})
let databaseName
if (!this.editId) {
this.editForm.databaseName =
'saas_' + this.editForm.databaseName
databaseName = 'saas_' + this.editForm.databaseName
}
const domain = this.editForm.domain + this.baseDomain
try {
......@@ -578,22 +578,25 @@ export default {
const res = await updateManageData({
...this.editForm,
domain: domain,
databaseName: databaseName,
})
if (res.code === 200) {
this.$message.success(res.message)
this.getList()
this.addVisible = false
}
} else {
const res = await addManageData({
...this.editForm,
domain: domain,
databaseName: databaseName,
})
if (res.code === 200) {
this.$message.success(res.message)
this.getList()
this.addVisible = false
}
}
this.addVisible = false
} catch (e) {
this.$message.warning(e)
} finally {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment