🚧 重构中 🚧

This commit is contained in:
lijiahang
2024-02-01 19:26:20 +08:00
parent 0263231fdb
commit 42f52a7475
12 changed files with 117 additions and 96 deletions

View File

@@ -33,7 +33,7 @@
<script lang="ts" setup>
import { ref, onBeforeMount, onUnmounted, onMounted } from 'vue';
import { dictKeys, InnerTabs } from './types/terminal.const';
import { dictKeys, TerminalTabs } from './types/terminal.const';
import { useCacheStore, useDictStore, useTerminalStore } from '@/store';
import useLoading from '@/hooks/loading';
import LayoutHeader from './components/layout/layout-header.vue';
@@ -85,7 +85,7 @@
// 事件处理
onMounted(() => {
// 默认标题
document.title = InnerTabs.NEW_CONNECTION.title;
document.title = TerminalTabs.NEW_CONNECTION.title;
// 注册关闭视口事件
// FIXME 开发阶段
// window.addEventListener('beforeunload', handleBeforeUnload);