|
|
@@ -25,7 +25,7 @@ if (userId) {
|
|
|
}
|
|
|
|
|
|
router.beforeEach(async (to, from, next) => {
|
|
|
- if (localStorage.userId) {
|
|
|
+ if (localStorage.userId && localStorage.email) {
|
|
|
store.commit("changeLogin", true);
|
|
|
let rolePermission = localStorage.rolePermission?.split(",") || [];
|
|
|
if (store.state.menuData.length) {
|