|
@@ -189,9 +189,19 @@ class Login extends Component {
|
|
let obj = Taro.getStorageSync('userInfor');
|
|
let obj = Taro.getStorageSync('userInfor');
|
|
obj.workTimeInfor = msg.data;
|
|
obj.workTimeInfor = msg.data;
|
|
Taro.setStorageSync('userInfor', obj);
|
|
Taro.setStorageSync('userInfor', obj);
|
|
- Taro.switchTab({
|
|
|
|
- url: '/pages/punchClock/index',
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
|
|
+ const currentPage = Taro.getStorageSync('currentPage')
|
|
|
|
+ if (currentPage) {
|
|
|
|
+ Taro.setStorageSync('currentPage', "")
|
|
|
|
+ Taro.reLaunch({
|
|
|
|
+ url: currentPage
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ Taro.switchTab({
|
|
|
|
+ url: '/pages/punchClock/index',
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
Taro.showToast({ title: msg.error[0].message, icon: 'none' })
|
|
Taro.showToast({ title: msg.error[0].message, icon: 'none' })
|
|
}
|
|
}
|