From 12e6f9526818cfb62434b37aa0a3169cfc0d3cae Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 24 二月 2021 16:46:06 +0800
Subject: [PATCH] 2021-02-24

---
 src/views/menudesign/index.jsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/menudesign/index.jsx b/src/views/menudesign/index.jsx
index 6dbf7e2..5a23018 100644
--- a/src/views/menudesign/index.jsx
+++ b/src/views/menudesign/index.jsx
@@ -23,7 +23,7 @@
 
 const { Panel } = Collapse
 const { confirm } = Modal
-const _locale = localStorage.getItem('lang') !== 'en-US' ? antdZhCN : antdEnUS
+const _locale = sessionStorage.getItem('lang') !== 'en-US' ? antdZhCN : antdEnUS
 
 const MenuForm = asyncComponent(() => import('./menuform'))
 const HomeForm = asyncComponent(() => import('./homeform'))
@@ -50,7 +50,7 @@
 
 class MenuDesign extends Component {
   state = {
-    dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
+    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
     MenuType: '',
     MenuId: '',
     ParentId: '',

--
Gitblit v1.8.0