From 62ebae424b86bb51f86d3d8852eb38450db9769a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 27 五月 2021 19:07:32 +0800 Subject: [PATCH] 2021-05-27 --- src/utils/utils-custom.js | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js index d1387bf..a963563 100644 --- a/src/utils/utils-custom.js +++ b/src/utils/utils-custom.js @@ -373,7 +373,8 @@ * @return {Object} style */ export function resetStyle (style) { - if (sessionStorage.getItem('appType') === 'mob' && style) { + if (!style) return {} + if (sessionStorage.getItem('appType') === 'mob') { let _style = JSON.stringify(style) // scaleview @@ -386,8 +387,6 @@ }) return JSON.parse(_style) - } else { - return style } - + return JSON.parse(JSON.stringify(style)) } \ No newline at end of file -- Gitblit v1.8.0