|
@@ -144,7 +144,7 @@ export default {
|
|
|
uni.setStorageSync('isLogin', true);
|
|
uni.setStorageSync('isLogin', true);
|
|
|
uni.showToast({ title: '登录成功', icon: 'success' });
|
|
uni.showToast({ title: '登录成功', icon: 'success' });
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
- uni.reLaunch({ url: '/pages/order/index' });
|
|
|
|
|
|
|
+ this.$emit('login-success');
|
|
|
}, 800);
|
|
}, 800);
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({ title: '登录失败,请检查账号密码', icon: 'none' });
|
|
uni.showToast({ title: '登录失败,请检查账号密码', icon: 'none' });
|