Browse Source

refactor: 去掉打印

wu.jian2 1 year ago
parent
commit
00f6b7deee

+ 0 - 5
data-room-ui/packages/BasicComponents/Marquee/index.vue

@@ -182,7 +182,6 @@ export default {
   watch: {
   watch: {
     speechText (val) {
     speechText (val) {
       if (!this.isPreview && this.config.customize.voiceBroadcast && !this.isInit && !this.firstSpeech) {
       if (!this.isPreview && this.config.customize.voiceBroadcast && !this.isInit && !this.firstSpeech) {
-        console.log(4)
         this.speechBroadcast(val)
         this.speechBroadcast(val)
       } else {
       } else {
         if (this.speech) {
         if (this.speech) {
@@ -242,7 +241,6 @@ export default {
           this.audio.play()
           this.audio.play()
         } else {
         } else {
           this.speech = null
           this.speech = null
-          console.log(1)
           this.speechBroadcast(this.config.customize.title)
           this.speechBroadcast(this.config.customize.title)
           this.isInit = false
           this.isInit = false
         }
         }
@@ -279,7 +277,6 @@ export default {
       }
       }
       // 清除上一个visibilitychange监听,重新开始监听
       // 清除上一个visibilitychange监听,重新开始监听
       if (this.voiceSwitchValue && !this.visibilityState && this.isInit) {
       if (this.voiceSwitchValue && !this.visibilityState && this.isInit) {
-        console.log(6)
         this.voiceBroadcast(config)
         this.voiceBroadcast(config)
       }
       }
       return config
       return config
@@ -302,7 +299,6 @@ export default {
           } else if (config.customize.title) {
           } else if (config.customize.title) {
             //  页面初始化不执行
             //  页面初始化不执行
             if (!this.isInit) {
             if (!this.isInit) {
-              console.log(2)
               this.speechBroadcast(config.customize.title)
               this.speechBroadcast(config.customize.title)
             }
             }
           }
           }
@@ -337,7 +333,6 @@ export default {
       config = { ...this.config, ...config }
       config = { ...this.config, ...config }
       if (config.customize.voiceBroadcast && this.isInit && !config?.option?.data?.[this.config?.dataSource?.metricField]) {
       if (config.customize.voiceBroadcast && this.isInit && !config?.option?.data?.[this.config?.dataSource?.metricField]) {
         this.isInit = false
         this.isInit = false
-        console.log(3)
         this.speechBroadcast(config.customize.title)
         this.speechBroadcast(config.customize.title)
         this.$nextTick(() => {
         this.$nextTick(() => {
           this.firstSpeech = false
           this.firstSpeech = false

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

@@ -38,7 +38,6 @@ export default {
   watch: {
   watch: {
     $route: {
     $route: {
       handler (val) {
       handler (val) {
-        console.log(val)
         const { globalData } = this.$router.app.$options
         const { globalData } = this.$router.app.$options
         if (globalData?.componentsManagementType) {
         if (globalData?.componentsManagementType) {
           this.activeType = globalData.componentsManagementType
           this.activeType = globalData.componentsManagementType