zpj 2 жил өмнө
parent
commit
75ad14de41
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      service/router.js

+ 1 - 1
service/router.js

@@ -61,7 +61,7 @@ router.beforeEach( async (to, from, next) => {
 						uni.setStorageSync('userNmae',res.data.name)
 						uni.setStorageSync('token_str',res.data.token)
 						uni.setStorageSync('m_id',res.data.m_id)
-						next(to.path)
+						next()
 					} else {
 						tools.error(res.msg);
 					}