[Snow Team] qa-final: auto-commit work

This commit is contained in:
yml
2026-05-22 19:13:11 +08:00
parent 287bafca71
commit 37cf2729be
+6 -6
View File
@@ -1,13 +1,13 @@
export function isMobileHost(hostname = window.location.hostname) {
return hostname === 'm.localhost' || hostname.startsWith('m.')
return hostname === "m.localhost" || hostname.startsWith("m.");
}
export function toMobilePath(path: string) {
if (path === '/') {
return '/m'
if (path === "/") {
return "/m";
}
if (path.startsWith('/m') || path.startsWith('/admin')) {
return path
if (path === "/m" || path.startsWith("/m/") || path.startsWith("/admin")) {
return path;
}
return `/m${path}`
return `/m${path}`;
}