Commit ecff0ea9 by 李伟康

fix(chat): 解决微信工作台访问权限验证问题

- 移除工作微信检测中的注释代码
- 恢复被注释掉的路由跳转逻辑
- 确保非工作微信环境正确重定向到 /not-work-wechat 页面
1 parent 0fbdc3be
......@@ -10,7 +10,7 @@ export function useAuthGuard(options?: { allowPublic?: boolean }) {
const checkIsWorkWeChat = () => {
const ua = navigator.userAgent.toLowerCase()
const isWxWork = ua.includes('wxwork')
// if(!isWxWork) router.push('/not-work-wechat')
if(!isWxWork) router.push('/not-work-wechat')
}
checkIsWorkWeChat()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!