From 46059e342d70b51bd9775f30feb5f29304bda6ac Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 19 九月 2022 17:15:04 +0800
Subject: [PATCH] 2022-09-19

---
 src/utils/utils-custom.js |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js
index 98ae0de..eca6187 100644
--- a/src/utils/utils-custom.js
+++ b/src/utils/utils-custom.js
@@ -576,6 +576,17 @@
             return col
           })
         }
+      } else if (item.type === 'form') {
+        item.subcards = item.subcards.map(cell => {
+          cell.uuid = this.getuuid()
+  
+          cell.fields = cell.fields.map(m => {
+            m.uuid = this.getuuid()
+    
+            return m
+          })
+          return cell
+        })
       }
   
       if (item.btnlog) {
@@ -943,9 +954,11 @@
  */
 export function resetStyle (style) {
   if (!style) return {}
-  if (sessionStorage.getItem('appType') === 'mob') {
-    let _style = JSON.stringify(style)
 
+  let _style = JSON.stringify(style)
+  _style = _style.replace(/@mywebsite@\//ig, window.GLOB.baseurl)
+
+  if (sessionStorage.getItem('appType') === 'mob') {
     // scaleview
     _style = _style.replace(/\d+vw/ig, (word) => {
       return parseFloat(word) * (window.GLOB.winWidth || 420) / 100 + 'px'
@@ -954,8 +967,7 @@
       return parseFloat(word) * (window.GLOB.winHeight || 738) / 100 + 'px'
       // return parseFloat(word) * 615 / 100 + 'px'
     })
-
-    return JSON.parse(_style)
   }
-  return JSON.parse(JSON.stringify(style))
+  
+  return JSON.parse(_style)
 }
\ No newline at end of file

--
Gitblit v1.8.0