Browse Source

fix: 组件库,设计业务组件时,返回激活对应的侧边menu

wu.jian2 2 years ago
parent
commit
9d1a6b5669

+ 0 - 1
data-room-ui/example/customDatasetComponents/jsDataSet/index.vue

@@ -602,7 +602,6 @@ export default {
     },
     // 脚本执行
     scriptExecute (isInit = false) {
-      console.log(isInit)
       if (this.dataForm.config.script) {
         const javascript = this.dataForm.config.script
         let scriptMethod = null

+ 5 - 0
data-room-ui/packages/BigScreenComponentMag/SideMenu.vue

@@ -37,6 +37,11 @@ export default {
     }
   },
   mounted () {
+    const type = this.$route?.query?.type
+    if (type) {
+      this.activeType = type
+      this.$emit('getPageInfo', type)
+    }
   },
   methods: {
     // 点击左侧组件

+ 4 - 1
data-room-ui/packages/BizComponent/index.vue

@@ -220,7 +220,10 @@ export default {
     },
     backManagement () {
       this.$router.push({
-        path: window.BS_CONFIG?.routers?.componentUrl || '/big-screen-components'
+        path: window.BS_CONFIG?.routers?.componentUrl || '/big-screen-components',
+        query: {
+          type: 'bizComponent'
+        }
       })
     },
     save () {