From 7bc3f3bc18b634c3df2926d3124b4e0d66cc38dd Mon Sep 17 00:00:00 2001 From: ShareVB Date: Sat, 19 Apr 2025 10:29:33 +0200 Subject: [PATCH] fix(My IP Address): fix base url May fix #58 --- src/tools/my-ip/my-ip.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tools/my-ip/my-ip.vue b/src/tools/my-ip/my-ip.vue index 2338b90b..9a76380d 100644 --- a/src/tools/my-ip/my-ip.vue +++ b/src/tools/my-ip/my-ip.vue @@ -15,7 +15,9 @@ declare global { } } -const { load: loadIpLookup } = useScriptTag('/iplookup.js', undefined, { type: 'module', manual: true }); +const base = import.meta.env.BASE_URL ?? '/'; + +const { load: loadIpLookup } = useScriptTag(`${base}iplookup.js`, undefined, { type: 'module', manual: true }); const [clientIPDetails, refreshClientIP] = computedRefreshableAsync(async () => { const ipv4 = { ip: '', error: '' };