Răsfoiți Sursa

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

johnsen 9 luni în urmă
părinte
comite
6dc79de372
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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
         }
       })