修改设备判断逻辑

master
fuxiaochun 2023-08-17 21:41:04 +08:00
parent 209ad702ef
commit 4bf9a58fff
1 changed files with 1 additions and 2 deletions

View File

@ -22,8 +22,7 @@ function platCheck() {
if (!isMobileDevice) {
let _href = window.location.href;
let _origin = window.location.origin;
_href.replace(_origin, import.meta.env.VITE_PC_HOST)
window.location.href = _href;
window.location.href = _href.replace(_origin, import.meta.env.VITE_PC_HOST);
}
}
platCheck();