Просмотр исходного кода

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

johnsen 9 месяцев назад
Родитель
Сommit
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
         }
       })