|
@@ -147,7 +147,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
|
-import { startH5Auth, handleH5AuthCallback, setToken } from '@/utils/auth.js'
|
|
|
|
|
|
|
+import { startH5Auth, handleH5AuthCallback, setToken, startStatusCheck } from '@/utils/auth.js'
|
|
|
import { checkUserStatus, h5PhoneLogin } from '@/utils/api.js'
|
|
import { checkUserStatus, h5PhoneLogin } from '@/utils/api.js'
|
|
|
// #endif
|
|
// #endif
|
|
|
|
|
|
|
@@ -698,6 +698,9 @@ export default {
|
|
|
// #endif
|
|
// #endif
|
|
|
|
|
|
|
|
handleLoginSuccess() {
|
|
handleLoginSuccess() {
|
|
|
|
|
+ // #ifdef H5
|
|
|
|
|
+ startStatusCheck()
|
|
|
|
|
+ // #endif
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: '登录成功',
|
|
title: '登录成功',
|
|
|
icon: 'success',
|
|
icon: 'success',
|