diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 67a7f2214..976f19b2b 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -80,6 +80,7 @@ declare module 'vue' { Loading: typeof import('element-plus/es')['ElLoadingDirective'] Logo: typeof import('./src/components/app-layout/menu/components/Logo.vue')['default'] Menu: typeof import('./src/components/app-layout/menu/index.vue')['default'] + MsgInfo: typeof import('./src/components/msg-info/index.vue')['default'] Popover: typeof import('element-plus/es')['ElPopoverDirective'] RouterButton: typeof import('./src/components/router-button/index.vue')['default'] Status: typeof import('./src/components/status/index.vue')['default'] diff --git a/frontend/src/components/msg-info/index.vue b/frontend/src/components/msg-info/index.vue new file mode 100644 index 000000000..14d3f565a --- /dev/null +++ b/frontend/src/components/msg-info/index.vue @@ -0,0 +1,34 @@ + + + + diff --git a/frontend/src/styles/common.scss b/frontend/src/styles/common.scss index 2c5960566..8740a675f 100644 --- a/frontend/src/styles/common.scss +++ b/frontend/src/styles/common.scss @@ -286,3 +286,4 @@ font-size: 14px; color: #646a73; } + diff --git a/frontend/src/views/host/file-management/process/index.vue b/frontend/src/views/host/file-management/process/index.vue index bdb261093..cc3491c9c 100644 --- a/frontend/src/views/host/file-management/process/index.vue +++ b/frontend/src/views/host/file-management/process/index.vue @@ -7,9 +7,8 @@ :title="$t('file.downloadProcess')" >
- - {{ value['percent'] === 100 ? $t('file.downlodSuccess') : $t('file.downloading') }} {{ value['name'] }} - + {{ value['percent'] === 100 ? $t('file.downlodSuccess') : $t('file.downloading') }} + @@ -24,6 +23,7 @@ import { FileKeys } from '@/api/modules/files'; import { computeSize } from '@/utils/util'; import { onBeforeUnmount, ref, toRefs } from 'vue'; +import MsgInfo from '@/components/msg-info/index.vue'; const props = defineProps({ open: { @@ -63,8 +63,8 @@ const onClose = () => {}; const initProcess = () => { let href = window.location.href; let protocol = href.split('//')[0] === 'http:' ? 'ws' : 'wss'; - let ipLocal = href.split('//')[1].split('/')[0]; - processSocket = new WebSocket(`${protocol}://${ipLocal}/api/v1/files/ws`); + // let ipLocal = href.split('//')[1].split('/')[0]; + processSocket = new WebSocket(`${protocol}://localhost:9999/api/v1/files/ws`); processSocket.onopen = onOpenProcess; processSocket.onmessage = onMessage; processSocket.onerror = onerror; diff --git a/frontend/src/views/website/website/index.vue b/frontend/src/views/website/website/index.vue index 5cfdd6089..e3ba24ed7 100644 --- a/frontend/src/views/website/website/index.vue +++ b/frontend/src/views/website/website/index.vue @@ -76,8 +76,13 @@ @@ -104,12 +109,11 @@ - + + +