Commit 83bef069 by qinjianhui

fix: 问题修改

parent cc77fa5a
...@@ -568,9 +568,9 @@ export default { ...@@ -568,9 +568,9 @@ export default {
const l = this.$loading({ const l = this.$loading({
background: 'rgba(0, 0, 0, 0.3)', background: 'rgba(0, 0, 0, 0.3)',
}) })
let databaseName
if (!this.editId) { if (!this.editId) {
this.editForm.databaseName = databaseName = 'saas_' + this.editForm.databaseName
'saas_' + this.editForm.databaseName
} }
const domain = this.editForm.domain + this.baseDomain const domain = this.editForm.domain + this.baseDomain
try { try {
...@@ -578,22 +578,25 @@ export default { ...@@ -578,22 +578,25 @@ export default {
const res = await updateManageData({ const res = await updateManageData({
...this.editForm, ...this.editForm,
domain: domain, domain: domain,
databaseName: databaseName,
}) })
if (res.code === 200) { if (res.code === 200) {
this.$message.success(res.message) this.$message.success(res.message)
this.getList() this.getList()
this.addVisible = false
} }
} else { } else {
const res = await addManageData({ const res = await addManageData({
...this.editForm, ...this.editForm,
domain: domain, domain: domain,
databaseName: databaseName,
}) })
if (res.code === 200) { if (res.code === 200) {
this.$message.success(res.message) this.$message.success(res.message)
this.getList() this.getList()
this.addVisible = false
} }
} }
this.addVisible = false
} catch (e) { } catch (e) {
this.$message.warning(e) this.$message.warning(e)
} finally { } 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