From 2292d1826e69e21c8a411c217faef635fe57d458 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 07 一月 2021 10:48:49 +0800
Subject: [PATCH] Merge branch 'bms' of ssh://39.106.218.81:29418/~jinfei/pc-plat into bms

---
 src/utils/utils-update.js |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/src/utils/utils-update.js b/src/utils/utils-update.js
index eb738e5..7db6fb5 100644
--- a/src/utils/utils-update.js
+++ b/src/utils/utils-update.js
@@ -58,6 +58,7 @@
     }
 
     if (config.version < '1.1') {
+      config.version = '1.1'
       if (config.setting.interType === 'inner' && !config.setting.innerFunc) {
         config.setting.interType = 'system'
       }
@@ -70,7 +71,17 @@
       })
     }
 
-    config.version = '1.1'
+    if (config.version < '1.2') {
+      config.version = '1.2'
+      // 鍏煎鍔熻兘鎸夐挳
+      config.action = config.action.map(item => {
+        if (item.execMode) {
+          item.OpenType = 'funcbutton'
+        }
+        return item
+      })
+    }
+
     config.Template = 'CommonTable'
 
     return config
@@ -127,6 +138,7 @@
     }
 
     if (config.version < '1.1') {
+      config.version = '1.1'
       if (config.setting.interType === 'inner' && !config.setting.innerFunc) {
         config.setting.interType = 'system'
       }
@@ -139,7 +151,17 @@
       })
     }
 
-    config.version = '1.1'
+    if (config.version < '1.2') {
+      config.version = '1.2'
+      // 鍏煎鍔熻兘鎸夐挳
+      config.action = config.action.map(item => {
+        if (item.execMode) {
+          item.OpenType = 'funcbutton'
+        }
+        return item
+      })
+    }
+    
     config.Template = 'SubTable'
 
     return config

--
Gitblit v1.8.0