From 1bec8d69cf14bd88591eee5b0320c5c8f6c25a08 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 08 三月 2024 21:19:31 +0800
Subject: [PATCH] Merge branch 'master' into positec

---
 src/mob/colorsketch/index.jsx |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mob/colorsketch/index.jsx b/src/mob/colorsketch/index.jsx
index 35822cb..ac0a99e 100644
--- a/src/mob/colorsketch/index.jsx
+++ b/src/mob/colorsketch/index.jsx
@@ -50,6 +50,10 @@
 
     if (app_colors) {
       this.getColors(app_colors)
+    } else if (sessionStorage.getItem('app_colors')) {
+      let app_colors = JSON.parse(sessionStorage.getItem('app_colors'))
+      window.GLOB.app_colors = app_colors
+      this.getColors(app_colors)
     } else {
       if (loading) {
         this.getColors([])
@@ -66,6 +70,7 @@
         Api.getCloudConfig(param).then(res => {
           loading = false
           window.GLOB.app_colors = res.data || []
+          sessionStorage.setItem('app_colors', JSON.stringify(res.data || []))
           this.getColors(res.data || [])
         })
       }

--
Gitblit v1.8.0