fixed windows issues

This commit is contained in:
DecDuck
2024-10-09 17:55:19 +11:00
parent 0c0cfebc1e
commit 959dad383e
11 changed files with 40 additions and 28 deletions

View File

@ -38,15 +38,16 @@
<div class="h-0.5 rounded-full w-full bg-zinc-800" />
<div class="flex flex-col mb-1">
<MenuItem v-slot="{ active }">
<NuxtLink
@click="() => openAdminUrl()"
<a
:href="adminUrl"
target="_blank"
:class="[
active ? 'bg-zinc-800 text-zinc-100' : 'text-zinc-400',
'transition block px-4 py-2 text-sm',
]"
>
Admin Dashboard
</NuxtLink>
</a>
</MenuItem>
<MenuItem v-for="(nav, navIdx) in navigation" v-slot="{ active }">
<NuxtLink
@ -82,10 +83,6 @@ const adminUrl: string = await invoke("gen_drop_url", {
path: "/admin",
});
async function openAdminUrl() {
await invoke("open_url", { path: adminUrl });
}
const navigation: NavigationItem[] = [
{
label: "Account settings",