fix: 修复平台详情跳转到更新页面路由不准确问题

This commit is contained in:
“huailei000”
2022-10-10 18:21:35 +08:00
committed by huailei
parent 60286f69ad
commit 25f4f15e76

View File

@@ -36,12 +36,10 @@ export default {
return !this.TaskDetail.internal && this.$hasPerm('assets.delete_platform')
},
updateCallback: () => {
const { type, category } = this.TaskDetail
const { id, type, category } = this.TaskDetail
this.$router.push({
name: 'PlatformCreate',
params: {
id: this.$route.params.id
},
name: 'PlatformUpdate',
params: { id },
query: {
type: type.value,
category: category.value