diff --git a/frontend/src/components/DevDebugPanel.vue b/frontend/src/components/DevDebugPanel.vue index e81dfae..c25f072 100644 --- a/frontend/src/components/DevDebugPanel.vue +++ b/frontend/src/components/DevDebugPanel.vue @@ -1,498 +1,7 @@ - - - - 调试面板 📌 - - - {{ isCollapsed ? '展开' : '收起' }} - - - - - - - 🛣️ 当前路由信息 - - 路径: - {{ currentRoute.path }} - - - 名称: - {{ currentRoute.name || '未命名' }} - - - 标题: - {{ currentRoute.meta?.title || '无标题' }} - - - 参数: - {{ JSON.stringify(currentRoute.params, null, 2) }} - - - 查询: - {{ JSON.stringify(currentRoute.query, null, 2) }} - - - - - - 📚 路由历史 (最近10条) - - - {{ route.time }} - {{ route.path }} - {{ route.name }} - - - - - - - ⚙️ 环境信息 - - Vue版本: - {{ vueVersion }} - - - 开发模式: - {{ isDev ? '是' : '否' }} - - - 当前时间: - {{ currentTime }} - - - - - - 🚀 快捷导航 - - - {{ route.title }} - - - - - + - - diff --git a/frontend/src/components/devtools/EnvironmentPage.vue b/frontend/src/components/devtools/EnvironmentPage.vue new file mode 100644 index 0000000..1307e69 --- /dev/null +++ b/frontend/src/components/devtools/EnvironmentPage.vue @@ -0,0 +1,174 @@ + + + + + ⚙️ 环境信息 + + Vue版本: + {{ vueVersion }} + + + 开发模式: + {{ isDev ? '是' : '否' }} + + + 当前时间: + {{ currentTime }} + + + 用户代理: + {{ userAgent }} + + + 屏幕分辨率: + {{ screenResolution }} + + + 窗口尺寸: + {{ windowSize }} + + + + + + 📊 性能信息 + + 内存使用: + {{ memoryInfo }} + + + 页面加载时间: + {{ loadTime }} + + + + + + + + diff --git a/frontend/src/components/devtools/QuickNavPage.vue b/frontend/src/components/devtools/QuickNavPage.vue new file mode 100644 index 0000000..efe84f7 --- /dev/null +++ b/frontend/src/components/devtools/QuickNavPage.vue @@ -0,0 +1,199 @@ + + + + + 🚀 快捷导航 + + + {{ route.title }} + + + + + + + 🛠️ 开发工具 + + 清除存储 + 重新加载 + 切换控制台 + + + + + + ⌨️ 快捷键 + + + Ctrl + Shift + D + 切换调试面板 + + + F12 + 开发者工具 + + + Ctrl + R + 刷新页面 + + + + + + + + + diff --git a/frontend/src/components/devtools/RouteInfoPage.vue b/frontend/src/components/devtools/RouteInfoPage.vue new file mode 100644 index 0000000..3733273 --- /dev/null +++ b/frontend/src/components/devtools/RouteInfoPage.vue @@ -0,0 +1,192 @@ + + + + + 🛣️ 当前路由信息 + + 路径: + {{ currentRoute.path }} + + + 名称: + {{ currentRoute.name || '未命名' }} + + + 标题: + {{ currentRoute.meta?.title || '无标题' }} + + + 参数: + {{ JSON.stringify(currentRoute.params, null, 2) }} + + + 查询: + {{ JSON.stringify(currentRoute.query, null, 2) }} + + + + + + 📚 路由历史 (最近10条) + + + {{ route.time }} + {{ route.path }} + {{ route.name }} + + + + + + + + + diff --git a/frontend/src/components/devtools/index.vue b/frontend/src/components/devtools/index.vue new file mode 100644 index 0000000..cf2417d --- /dev/null +++ b/frontend/src/components/devtools/index.vue @@ -0,0 +1,314 @@ + + + + + 调试面板 📌 + + + + {{ isCollapsed ? '展开' : '收起' }} + + + + + + + + + {{ tab.icon }} {{ tab.title }} + + + + + + + + + + + + + +
{{ JSON.stringify(currentRoute.params, null, 2) }}
{{ JSON.stringify(currentRoute.query, null, 2) }}