feat: 修改方法名

This commit is contained in:
zhengkunwang223
2023-01-31 14:18:52 +08:00
committed by zhengkunwang223
parent cc17499207
commit 3ffda84dee
33 changed files with 81 additions and 79 deletions
@@ -33,7 +33,7 @@
<script lang="ts" setup>
import { logContainer } from '@/api/modules/container';
import i18n from '@/lang';
import { dateFromatForName } from '@/utils/util';
import { dateFormatForName } from '@/utils/util';
import { nextTick, reactive, ref, shallowRef } from 'vue';
import { Codemirror } from 'vue-codemirror';
import { javascript } from '@codemirror/lang-javascript';
@@ -98,7 +98,7 @@ const onDownload = async () => {
const a = document.createElement('a');
a.style.display = 'none';
a.href = downloadUrl;
a.download = logSearch.container + '-' + dateFromatForName(new Date()) + '.log';
a.download = logSearch.container + '-' + dateFormatForName(new Date()) + '.log';
const event = new MouseEvent('click');
a.dispatchEvent(event);
};