Explorar o código

fix: showOnH5功能兼容老版本配置

johnsen hai 10 meses
pai
achega
6dc79de372
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/views/platform/data/template-list.vue

+ 2 - 2
src/views/platform/data/template-list.vue

@@ -1060,14 +1060,14 @@ export default {
 
 
       this.defaultToolbars = toolbars
       this.defaultToolbars = toolbars
       this.toolbars = toolbars.filter(b => {
       this.toolbars = toolbars.filter(b => {
-        if (allowButtons.includes(b.button_type) && b.showOnH5 === 'Y') {
+        if (allowButtons.includes(b.button_type) && (b.showOnH5 === 'Y' || !b.showOnH5)) {
           return b
           return b
         }
         }
       })
       })
 
 
       this.defaultManages = manages
       this.defaultManages = manages
       this.manages = manages.filter(b => {
       this.manages = manages.filter(b => {
-        if (allowButtons.includes(b.button_type) && b.showOnH5 === 'Y') {
+        if (allowButtons.includes(b.button_type) && (b.showOnH5 === 'Y' || !b.showOnH5)) {
           return b
           return b
         }
         }
       })
       })