forked from zhongyidian/super_video
feat: 完善课程学习与技能树体验
完善课程资源、学习进度与技能树解锁体验,统一视频播放与引导相关交互。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
6f289959be
commit
3e258b87d9
314 files changed
+7020
-3386
No files matched your search
+19
@@ -5,6 +5,25 @@ import './style.css'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
|
||||
// 在开发模式的移动端启用 vConsole(需先安装 vconsole 依赖)
|
||||
if (import.meta.env.DEV && typeof window !== 'undefined') {
|
||||
const ua = window.navigator.userAgent.toLowerCase()
|
||||
const isMobile = /iphone|ipad|ipod|android|mobile/.test(ua)
|
||||
|
||||
if (isMobile) {
|
||||
// 动态加载,避免生产环境打包 & 未安装时报错
|
||||
import('vconsole')
|
||||
.then((mod) => {
|
||||
const VConsole = (mod as any).default || (mod as any)
|
||||
|
||||
new VConsole()
|
||||
})
|
||||
.catch(() => {
|
||||
// vconsole 未安装或加载失败时静默忽略
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const app = createApp(App)
|
||||
const pinia = createPinia()
|
||||
pinia.use(piniaPluginPersistedstate)
|
||||
|
||||
Reference in new issue
Block a user