From 029dea0100bd14dc9890980f9c0d7a88354593b8 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Fri, 3 May 2024 10:34:41 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/system/file.ts | 6 +- src/utils/index.ts | 2 + src/views/login/index.vue | 2 +- src/views/system/file/main/FileAside.vue | 8 --- .../system/file/main/FileAsideStatistics.vue | 62 +++++++++++-------- 5 files changed, 42 insertions(+), 38 deletions(-) diff --git a/src/apis/system/file.ts b/src/apis/system/file.ts index eb2bf55..2501519 100644 --- a/src/apis/system/file.ts +++ b/src/apis/system/file.ts @@ -18,7 +18,7 @@ export function deleteFile(ids: string | Array) { return http.del(`${BASE_URL}/${ids}`) } -/** @desc 查询文件资源统计 */ -export function statisticsFile() { - return http.get(`${BASE_URL}/statistics`) +/** @desc 查询文件资源统计统计 */ +export function getFileStatistics() { + return http.get(`${BASE_URL}/statistics`) } diff --git a/src/utils/index.ts b/src/utils/index.ts index 6262d31..bd30a1b 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -243,6 +243,8 @@ export const formatFileSize = (fileSize: number) => { const size = srcSize / 1024 ** index return `${size.toFixed(2)} ${unitArr[index]}` } + +/** @desc 复制文本 */ export const copyText = (text: any) => { const textarea = document.createElement('textarea') textarea.value = text diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 0187fed..772368f 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -130,6 +130,7 @@ const onOauth = async (source: string) => { justify-content: start; align-items: center; background-color: var(--color-bg-5); + color: #121314; &-logo { width: 100%; height: 104px; @@ -158,7 +159,6 @@ const onOauth = async (source: string) => { .login-right { width: 100%; height: 100%; - background: var(--color-bg-1); display: flex; flex-direction: column; padding: 30px 30px 0; diff --git a/src/views/system/file/main/FileAside.vue b/src/views/system/file/main/FileAside.vue index 9a541be..56c4c13 100644 --- a/src/views/system/file/main/FileAside.vue +++ b/src/views/system/file/main/FileAside.vue @@ -57,12 +57,4 @@ const onClickItem = (item: FileTypeListItem) => { padding-right: 0; } } - -:deep(.arco-progress) { - .arco-progress-line, - .arco-progress-line-bar-buffer, - .arco-progress-line-bar { - border-radius: 0; - } -} diff --git a/src/views/system/file/main/FileAsideStatistics.vue b/src/views/system/file/main/FileAsideStatistics.vue index 0d7a194..6ed3bf5 100644 --- a/src/views/system/file/main/FileAsideStatistics.vue +++ b/src/views/system/file/main/FileAsideStatistics.vue @@ -4,35 +4,56 @@ - - + + - +