fix: 修复webUI刷新跳转登录页面的问题

This commit is contained in:
TOM88812
2025-02-16 23:01:44 +08:00
parent 1598f6cd14
commit 68ab05b220
12 changed files with 288 additions and 299 deletions
+5 -3
View File
@@ -33,7 +33,9 @@
<script setup>
import NavBar from './NavBar.vue';
const emit = defineEmits(['enter-panel']);
import { useRouter } from 'vue-router';
const router = useRouter();
const openTutorial = () => {
window.open('https://ccnphfhqs21z.feishu.cn/wiki/F5krwD16viZoF0kKkvDcrZNYnhb', '_blank');
@@ -48,12 +50,12 @@ const openGithubServer = () => {
};
const enterPanel = () => {
emit('enter-panel');
router.push('/panel');
};
const handleTabChange = (tab) => {
if (tab === 'device') {
emit('enter-panel');
router.push('/panel');
}
};
</script>