mirror of
https://github.com/yangzongzhuan/RuoYi-App.git
synced 2025-09-27 14:42:41 +00:00
优化H5刷新后页面跳转不正确问题(IC92FN)
This commit is contained in:
@@ -39,7 +39,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getCodeImg } from '@/api/login'
|
import { getCodeImg } from '@/api/login'
|
||||||
|
import { getToken } from '@/utils/auth'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -59,7 +60,14 @@
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getCode()
|
this.getCode()
|
||||||
},
|
},
|
||||||
|
onLoad() {
|
||||||
|
//#ifdef H5
|
||||||
|
if (getToken()) {
|
||||||
|
this.$tab.reLaunch('/pages/index')
|
||||||
|
}
|
||||||
|
//#endif
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 用户注册
|
// 用户注册
|
||||||
handleUserRegister() {
|
handleUserRegister() {
|
||||||
|
Reference in New Issue
Block a user