From 9d0acfb65c80c4948c305ca01338f894b87346a0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 08 四月 2024 09:44:37 +0800
Subject: [PATCH] Merge branch 'Four-Way-Rack' of http://47.97.1.152:5880/r/zy-asrs-master into Four-Way-Rack

---
 zy-asrs-flow/src/utils/common-util.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-flow/src/utils/common-util.js b/zy-asrs-flow/src/utils/common-util.js
index 60875e4..b8939ba 100644
--- a/zy-asrs-flow/src/utils/common-util.js
+++ b/zy-asrs-flow/src/utils/common-util.js
@@ -5,7 +5,7 @@
     const stateStr = localStorage.getItem(tabKey);
     if (stateStr) {
         const state = JSON.parse(stateStr);
-        const oldVal = state[key].show;
+        const oldVal = state[key]?.show;
         let hasVal = false;
         if (oldVal === true) {
             hasVal = true;

--
Gitblit v1.9.1