fix: 修复数据库应用更新页面异常问题

This commit is contained in:
Bai 2021-07-29 11:26:40 +08:00 committed by Jiangjie.Bai
parent cb5fe0f2a0
commit 959bb56a3e
2 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,6 @@ export default {
}
}
},
url: '/api/v1/applications/applications/',
getUrl() {
const params = this.$route.params
let url = `/api/v1/applications/applications/`

View File

@ -45,6 +45,9 @@ export default {
onClone: ({ row }) => {
vm.$router.push({ name: 'DatabaseAppCreate', query: { type: row.type, clone_from: row.id }})
},
onUpdate: ({ row }) => {
vm.$router.push({ name: 'DatabaseAppUpdate', params: { id: row.id }, query: { type: row.type }})
},
performDelete: function({ row, col, cellValue, reload }) {
this.$axios.delete(
`/api/v1/applications/applications/${row.id}/`