🚀 添加初始化 sql.
This commit is contained in:
@@ -38,14 +38,11 @@ export default class SftpTransferDownloader implements ISftpTransferDownloader {
|
||||
|
||||
// 下载完成
|
||||
downloadFinish() {
|
||||
console.log(this.abort);
|
||||
if (this.abort) {
|
||||
// 中断则不触发下载
|
||||
return;
|
||||
}
|
||||
// fixme bug
|
||||
try {
|
||||
console.log('saveAs');
|
||||
// 触发下载
|
||||
saveAs(new Blob(this.blobArr, {
|
||||
type: 'application/octet-stream'
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
import { dictKeys, TerminalTabs } from './types/terminal.const';
|
||||
import { useCacheStore, useDictStore, useTerminalStore } from '@/store';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import debug from '@/utils/env';
|
||||
import LayoutHeader from './components/layout/layout-header.vue';
|
||||
import LeftSidebar from './components/layout/left-sidebar.vue';
|
||||
import RightSidebar from './components/layout/right-sidebar.vue';
|
||||
@@ -82,15 +83,17 @@
|
||||
}
|
||||
});
|
||||
|
||||
// 事件处理
|
||||
// 加载处理
|
||||
onMounted(() => {
|
||||
// 默认标题
|
||||
document.title = TerminalTabs.NEW_CONNECTION.title;
|
||||
// 注册关闭视口事件
|
||||
// FIXME 开发阶段
|
||||
// window.addEventListener('beforeunload', handleBeforeUnload);
|
||||
if (debug) {
|
||||
window.addEventListener('beforeunload', handleBeforeUnload);
|
||||
}
|
||||
});
|
||||
|
||||
// 卸载处理
|
||||
onUnmounted(() => {
|
||||
// 卸载时清除 cache
|
||||
cacheStore.reset('authorizedHostKeys', 'authorizedHostIdentities', 'commandSnippetGroups');
|
||||
|
||||
Reference in New Issue
Block a user