fix: 修改自定义组件和业务组件设计时,返回按钮跳转逻辑

main
wu.jian2
parent 2c80b9b04a
commit f04d921639

@ -12,14 +12,12 @@ export default {
props: {
catalogInfo: {
type: String,
default: ''
default: 'component'
}
},
components: { ComponentList },
data () {
return {
}
return { }
}
}
</script>

@ -299,9 +299,9 @@ export default {
}
},
backManagement () {
this.$router.push({
path: this.pageInfo.type === 'component' ? (window.BS_CONFIG?.routers?.componentUrl || '/big-screen-components') : (window.BS_CONFIG?.routers?.pageManagementUrl || '/home')
})
this.$router.push({ path: this.pageInfo.type === 'component' ? (window.BS_CONFIG?.routers?.componentUrl || '/big-screen-components') : (window.BS_CONFIG?.routers?.pageManagementUrl || '/home') })
const data = { componentsManagementType: 'component' }
this.$router.app.$options.globalData = data //
},
undo (isUndo) {
this.undoTimeLine(isUndo)

@ -135,12 +135,6 @@ export default {
BizComponentPreview
},
props: {},
beforeRouteLeave (to, from, next) {
//
const data = { componentsManagementType: 'bizComponent' }
this.$router.app.$options.globalData = data //
next() //
},
data () {
return {
form: {
@ -236,9 +230,9 @@ export default {
}
},
backManagement () {
this.$router.push({
path: window.BS_CONFIG?.routers?.componentUrl || '/big-screen-components'
})
this.$router.push({ path: window.BS_CONFIG?.routers?.componentUrl || '/big-screen-components' })
const data = { componentsManagementType: 'bizComponent' }
this.$router.app.$options.globalData = data //
},
save () {
this.loading = true

Loading…
Cancel
Save