提交 c15044e1 authored 作者: lidongxu's avatar lidongxu

fix(login): 勤策 PC 端不是跳转打开网页,而是在自己网页上修改请求头 location 实现跳转

导致我们登录页面代码不会重新刷新,加个计时器自己检测
上级 b4ea927c
......@@ -168,11 +168,14 @@ const checkQcLoginAuth = async () => {
isShowLogin.value = true
}
}
onMounted(() => {
const t = setInterval(() => {
console.log(123)
checkQcLoginAuth()
}, 1000)
onUnmounted(() => {
clearInterval(t)
})
// 工号密码登录
function handleLogin() {
proxy.$refs.loginRef.validate(valid => {
......
......@@ -18,7 +18,7 @@ export default defineConfig(({ mode, command }) => {
},
// vite 相关配置
server: {
port: 8080,
port: 8085,
host: true,
open: true,
proxy: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论