|
|
@@ -1,7 +1,8 @@
|
|
|
<template>
|
|
|
<headerBar
|
|
|
- title="设置"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template #title><div @click="handleSettingClick">设置</div></template>
|
|
|
+ </headerBar>
|
|
|
<div class="container">
|
|
|
<nav class="settings-nav">
|
|
|
<div class="nav-item" :class="{'active': activeIndex === 0}" @click="toggleTab(0)">
|
|
|
@@ -66,6 +67,8 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <DebugPanel ref="debugPanel" />
|
|
|
</div>
|
|
|
<!--基础配置-->
|
|
|
<!--其他设置-->
|
|
|
@@ -147,6 +150,33 @@ import actionConfig from './components/action_config.vue'
|
|
|
import otherConfig from './components/otherConfig'
|
|
|
useCheckInfo();
|
|
|
|
|
|
+//点击三次 打开资源目录
|
|
|
+
|
|
|
+import DebugPanel from './components/DebugPanel.vue';
|
|
|
+// 在setup函数中创建调试面板实例
|
|
|
+const debugPanel = ref(null);
|
|
|
+// 添加设置点击计数器
|
|
|
+const settingClickCount = ref(0);
|
|
|
+
|
|
|
+// 修改headerBar的点击处理函数
|
|
|
+function handleSettingClick() {
|
|
|
+ console.log('handleSettingClickhandleSettingClick')
|
|
|
+ settingClickCount.value++;
|
|
|
+
|
|
|
+ if (settingClickCount.value >= 3) {
|
|
|
+ if (debugPanel.value) {
|
|
|
+ debugPanel.value.showDebugPanel();
|
|
|
+ }
|
|
|
+ settingClickCount.value = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ setTimeout(() => {
|
|
|
+ settingClickCount.value = 0;
|
|
|
+ }, 3000); // 3秒内未再次点击则重置计数器
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
// 路由和状态管理初始化
|
|
|
const route = useRoute();
|
|
|
const router = useRouter();
|