Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions template/uni-app/libs/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ function _toLogin(push, pathLogin) {
// #endif
const BASIC_CONFIG = Cache.get('BASIC_CONFIG')
if (!pathLogin)
pathLogin = '/page/users/login/index'
Cache.set('login_back_url', path);
pathLogin = '/pages/users/login/index'
//不能等于登录地址,否则登录后还是登录页面
if (path !== pathLogin) {
Cache.set('login_back_url', path);
}
// #ifdef H5
if (isWeixin() && BASIC_CONFIG.wechat_status) {
uni.navigateTo({
Expand Down