From f5748b784fcd3a05c8c69803137d961b9a7b6d04 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 22 May 2026 11:55:38 +0800 Subject: [PATCH] fix: After customizing the context path, the resource path in appearance settings is not updated --- frontend/src/stores/appearance.ts | 2 +- frontend/src/views/system/appearance/LoginPreview.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/stores/appearance.ts b/frontend/src/stores/appearance.ts index 2093f300a..ed368a7dc 100644 --- a/frontend/src/stores/appearance.ts +++ b/frontend/src/stores/appearance.ts @@ -315,7 +315,7 @@ const setLinkIcon = (linkWeb?: string) => { if (linkWeb) { link['href'] = baseUrl + linkWeb } else { - link['href'] = '/LOGO-fold.svg' + link['href'] = `${location.pathname}LOGO-fold.svg` } } } diff --git a/frontend/src/views/system/appearance/LoginPreview.vue b/frontend/src/views/system/appearance/LoginPreview.vue index 8e9642c22..1c53312cc 100644 --- a/frontend/src/views/system/appearance/LoginPreview.vue +++ b/frontend/src/views/system/appearance/LoginPreview.vue @@ -129,7 +129,7 @@ const pageWeb = computed(() => { return !props.web ? props.isBlue ? logoHeader - : '/LOGO-fold.svg' + : `${location.pathname}LOGO-fold.svg` : props.web.startsWith('blob') ? props.web : baseUrl + props.web