From 6ce8f67b7e25d0a2d6139c3aca40b09f335932de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=88=90=E5=BC=BA?= Date: Fri, 20 Nov 2020 14:35:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index e6d3fff..3d1ee27 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -4,7 +4,7 @@ import * as dd from 'dingtalk-jsapi' const user = { state: { deplist: [], - info: dd.other ? JSON.parse(localStorage.getItem('info')) : {}, + info: dd.other ? (JSON.parse(localStorage.getItem('info')) || {}) : {}, auth: JSON.parse(localStorage.getItem('auth')) || {} },