优化H5刷新后页面跳转不正确问题(IC92FN)

This commit is contained in:
RuoYi
2025-06-12 11:20:52 +08:00
parent 149bac33d6
commit be4194a035

View File

@@ -40,6 +40,7 @@
<script> <script>
import { getCodeImg } from '@/api/login' import { getCodeImg } from '@/api/login'
import { getToken } from '@/utils/auth'
export default { export default {
data() { data() {
@@ -60,6 +61,13 @@
created() { created() {
this.getCode() this.getCode()
}, },
onLoad() {
//#ifdef H5
if (getToken()) {
this.$tab.reLaunch('/pages/index')
}
//#endif
},
methods: { methods: {
// 用户注册 // 用户注册
handleUserRegister() { handleUserRegister() {