flat:暂存

This commit is contained in:
Apcallover
2025-12-20 14:27:38 +08:00
parent 4ae11e31f4
commit 1c05aa1f5b
4 changed files with 65 additions and 43 deletions

View File

@@ -634,6 +634,20 @@ export function reloadBrowser() {
window.location.reload()
}
// 一体机环境判断
export function isY9MachineType() {
const ua = navigator.userAgent;
const isY9Machine = /Y9-ZYYH/i.test(ua); // 匹配机器型号
return isY9Machine;
}
// 一体机环境判断
export function isAsdMachineType() {
const ua = navigator.userAgent;
const isY9Machine = /asd_hanweb/i.test(ua); // 匹配机器型号
return isY9Machine;
}
export const $api = {
msg,
@@ -684,5 +698,7 @@ export default {
sm2_Decrypt,
sm2_Encrypt,
safeReLaunch,
reloadBrowser
reloadBrowser,
isAsdMachineType,
isY9MachineType
}