mirror of
https://github.com/yangzongzhuan/RuoYi-App.git
synced 2025-09-28 07:02:40 +00:00
优化H5刷新后页面跳转不正确问题(IC92FN)
This commit is contained in:
@@ -39,9 +39,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { ref, getCurrentInstance } from "vue"
|
||||||
|
import { onLoad } from "@dcloudio/uni-app"
|
||||||
|
import { getToken } from '@/utils/auth'
|
||||||
import { getCodeImg } from '@/api/login'
|
import { getCodeImg } from '@/api/login'
|
||||||
import { useConfigStore, useUserStore } from '@/store'
|
import { useConfigStore, useUserStore } from '@/store'
|
||||||
import { ref, getCurrentInstance } from "vue"
|
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
const globalConfig = useConfigStore().config
|
const globalConfig = useConfigStore().config
|
||||||
@@ -119,6 +121,14 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onLoad(() => {
|
||||||
|
//#ifdef H5
|
||||||
|
if (getToken()) {
|
||||||
|
proxy.$tab.reLaunch('/pages/index')
|
||||||
|
}
|
||||||
|
//#endif
|
||||||
|
})
|
||||||
|
|
||||||
getCode()
|
getCode()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user