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 || []) }) }