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

main
wu.jian2 2 years ago
parent 2c80b9b04a
commit f04d921639

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

@ -299,9 +299,9 @@ export default {
} }
}, },
backManagement () { backManagement () {
this.$router.push({ this.$router.push({ path: this.pageInfo.type === 'component' ? (window.BS_CONFIG?.routers?.componentUrl || '/big-screen-components') : (window.BS_CONFIG?.routers?.pageManagementUrl || '/home') })
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) { undo (isUndo) {
this.undoTimeLine(isUndo) this.undoTimeLine(isUndo)

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

Loading…
Cancel
Save