feat: 模板适配层、易班能力与全局状态

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
zhongyidianandClaude Opus 4.8 committed 2026-08-18 13:39:42 +08:00
1 parent 3995656175
commit d3ae0a8ca7
45 files changed
+6931 -179

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
/**
* vconsole 移动端调试工具
* 仅在开发环境的移动端启用
*/
function isMobileDevice() {
const userAgent = navigator.userAgent.toLowerCase();
const isMobileUA = /android|iphone|ipad|ipod|mobile/.test(userAgent);
const hasTouch = "ontouchstart" in window || navigator.maxTouchPoints > 0;
return isMobileUA || hasTouch;
}
if (import.meta.env.DEV && isMobileDevice()) {
void import("vconsole")
.then(({ default: VConsole }) => {
new VConsole();
})
.catch((error) => {
console.warn("[vconsole] failed to load", error);
});
}