2026-04-28 11:33:17 +08:00
|
|
|
<template>
|
2026-04-29 15:59:23 +08:00
|
|
|
<a-config-provider :theme="themeConfig">
|
2026-04-28 11:33:17 +08:00
|
|
|
<a-app>
|
|
|
|
|
<router-view />
|
|
|
|
|
</a-app>
|
|
|
|
|
</a-config-provider>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { onMounted } from "vue";
|
|
|
|
|
|
|
|
|
|
import { useAuthStore } from "@/stores/auth";
|
|
|
|
|
|
|
|
|
|
const auth = useAuthStore();
|
|
|
|
|
|
2026-04-29 15:59:23 +08:00
|
|
|
const themeConfig = {
|
|
|
|
|
token: {
|
|
|
|
|
colorPrimary: "#4f46e5",
|
|
|
|
|
colorLink: "#4f46e5",
|
|
|
|
|
colorInfo: "#4f46e5",
|
|
|
|
|
borderRadius: 6,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
2026-04-28 11:33:17 +08:00
|
|
|
onMounted(() => {
|
|
|
|
|
if (!auth.initialized) auth.hydrate();
|
|
|
|
|
});
|
|
|
|
|
</script>
|