浏览代码

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

johnsen 1 年之前
父节点
当前提交
6dc79de372
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
  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.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
         }
       })
 
       this.defaultManages = manages
       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
         }
       })