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