perf: 修改创建后的跳转

This commit is contained in:
ibuler 2022-03-17 12:11:41 +08:00 committed by Jiangjie.Bai
parent b6004c399c
commit 51d025b93a

View File

@ -153,12 +153,14 @@ export default {
msgLinkName = res.hostname
}
const h = this.$createElement
const detailRoute = this.objectDetailRoute
detailRoute.params = { id: res.id }
if (this.hasDetailInMsg) {
this.$message({
message: h('p', null, [
h('el-link', {
on: {
click: () => this.$router.push(this.objectDetailRoute)
click: () => this.$router.push(detailRoute)
},
style: { 'vertical-align': 'top' }
}, msgLinkName),
@ -194,6 +196,7 @@ export default {
onPerformError: {
type: Function,
default(error, method, vm) {
this.$log.error('error: ', error)
this.$emit('submitError', error)
const response = error.response
const data = response.data