NEZ-610 fix: cabinet列表页面bug

This commit is contained in:
@changcode
2021-05-10 15:45:18 +08:00
parent aa9f9f38f1
commit 61b57871cf
5 changed files with 21 additions and 13 deletions

View File

@@ -73,7 +73,7 @@ export default {
if (valid) {
this.editCabinet.idcId = this.currentDc.id
if (this.editCabinet.id) {
this.$put('cabinet', this.editCabinet).then(res => {
this.$put('/dc/cabinet', this.editCabinet).then(res => {
this.prevent_opt.save = false
if (res.code === 200) {
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') })
@@ -83,7 +83,7 @@ export default {
}
})
} else {
this.$post('cabinet', this.editCabinet).then(res => {
this.$post('/dc/cabinet', this.editCabinet).then(res => {
this.prevent_opt.save = false
if (res.code === 200) {
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') })