|
@@ -9,6 +9,7 @@ router.beforeEach(async(to, from, next) => {
|
|
|
NProgress.start()
|
|
NProgress.start()
|
|
|
// determine whether the user has logged in
|
|
// determine whether the user has logged in
|
|
|
const hasToken = getToken()
|
|
const hasToken = getToken()
|
|
|
|
|
+ console.log(hasToken)
|
|
|
if (hasToken) {
|
|
if (hasToken) {
|
|
|
store.commit('set_userId', hasToken)
|
|
store.commit('set_userId', hasToken)
|
|
|
if (to.path === '/login') {
|
|
if (to.path === '/login') {
|