From 1a96ab0224b5a806c0ac8f966dbc7a4d750be082 Mon Sep 17 00:00:00 2001 From: vastsa Date: Sun, 20 Sep 2026 01:58:15 +0800 Subject: [PATCH] fix: login-guide button contrast and use ROUTES constants Dark-mode CTA had both text-white and text-zinc-900; send the user to login via ROUTES instead of hardcoded paths. --- src/composables/useSendFlow.ts | 3 ++- src/views/SendFileView.vue | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/composables/useSendFlow.ts b/src/composables/useSendFlow.ts index 089c503..eda374b 100644 --- a/src/composables/useSendFlow.ts +++ b/src/composables/useSendFlow.ts @@ -6,6 +6,7 @@ import { useAdminStore } from '@/stores/adminStore' import { useConfigStore } from '@/stores/configStore' import { useFileDataStore } from '@/stores/fileData' import type { SendType, SentFileRecord, UploadProgress } from '@/types' +import { ROUTES } from '@/constants' import { getClipboardFile, insertTextAtSelection } from '@/utils/clipboard-paste' import { getErrorMessage } from '@/utils/common' import { getStorageUnit } from '@/utils/convert' @@ -110,7 +111,7 @@ export function useSendFlow() { ) const goLoginForUpload = () => { - router.push({ path: '/login', query: { redirect: '/send' } }) + router.push({ path: ROUTES.LOGIN, query: { redirect: ROUTES.SEND } }) } const checkOpenUpload = () => { diff --git a/src/views/SendFileView.vue b/src/views/SendFileView.vue index cc94973..48fb409 100644 --- a/src/views/SendFileView.vue +++ b/src/views/SendFileView.vue @@ -51,8 +51,8 @@