mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 07:27:01 +00:00
perf: 修改创建后的跳转
This commit is contained in:
parent
b6004c399c
commit
51d025b93a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user