|
|
@@ -9,8 +9,8 @@ import md5 from "md5";
|
|
|
const app = createApp(App);
|
|
|
|
|
|
router.beforeEach(async (to, from, next) => {
|
|
|
- let id = localStorage.id;
|
|
|
- if (id) {
|
|
|
+ let userId = localStorage.userId;
|
|
|
+ if (userId) {
|
|
|
store.commit("changeLogin", true);
|
|
|
if (0 === to.matched.length) {
|
|
|
next("/voyage/voyageList");
|