fix:修复bug
This commit is contained in:
@@ -366,7 +366,7 @@
|
|||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/login/index'
|
url: '/subPackages/user/login/index'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -332,11 +332,11 @@
|
|||||||
`${k}=${encodeURIComponent(current.options[k])}`).join('&') : ''
|
`${k}=${encodeURIComponent(current.options[k])}`).join('&') : ''
|
||||||
const redirect = encodeURIComponent(query ? `${route}?${query}` : route)
|
const redirect = encodeURIComponent(query ? `${route}?${query}` : route)
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: `/pages/login/index?redirect=${redirect}`
|
url: `/subPackages/user/login/index?redirect=${redirect}`
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/login/index'
|
url: '/subPackages/user/login/index'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,9 +76,9 @@ export default {
|
|||||||
const route = current && current.route ? ('/' + current.route) : '/pages/index/index'
|
const route = current && current.route ? ('/' + current.route) : '/pages/index/index'
|
||||||
const query = current && current.options ? Object.keys(current.options).map(k => `${k}=${encodeURIComponent(current.options[k])}`).join('&') : ''
|
const query = current && current.options ? Object.keys(current.options).map(k => `${k}=${encodeURIComponent(current.options[k])}`).join('&') : ''
|
||||||
const redirect = encodeURIComponent(query ? `${route}?${query}` : route)
|
const redirect = encodeURIComponent(query ? `${route}?${query}` : route)
|
||||||
uni.reLaunch({ url: `/pages/login/index?redirect=${redirect}` })
|
uni.reLaunch({ url: `/subPackages/user/login/index?redirect=${redirect}` })
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
uni.reLaunch({ url: '/pages/login/index' })
|
uni.reLaunch({ url: '/subPackages/user/login/index' })
|
||||||
}
|
}
|
||||||
} else if (res.code === 200) {
|
} else if (res.code === 200) {
|
||||||
this.userInfo = res.data
|
this.userInfo = res.data
|
||||||
@@ -109,7 +109,7 @@ export default {
|
|||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: '/pages/login/index'
|
url: '/subPackages/user/login/index'
|
||||||
})
|
})
|
||||||
}, 500)
|
}, 500)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,11 +118,11 @@ const redirectToLogin = () => {
|
|||||||
`${k}=${encodeURIComponent(current.options[k])}`).join('&') : '';
|
`${k}=${encodeURIComponent(current.options[k])}`).join('&') : '';
|
||||||
const redirect = encodeURIComponent(query ? `${route}?${query}` : route);
|
const redirect = encodeURIComponent(query ? `${route}?${query}` : route);
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: `/pages/login/index?redirect=${redirect}`
|
url: `/subPackages/user/login/index?redirect=${redirect}`
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/login/index'
|
url: '/subPackages/user/login/index'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user