This commit is contained in:
Donald Zou
2025-06-26 17:58:18 +08:00
parent e63bccf274
commit 6b194bba15
6 changed files with 50 additions and 47 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -5,8 +5,8 @@
<link rel="icon" href="/static/client/dist/img/Logo-2-128x128.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<script type="module" crossorigin src="/static/client/dist/assets/index-CJOQRxVt.js"></script>
<link rel="stylesheet" crossorigin href="/static/client/dist/assets/index-D3MXTPtU.css">
<script type="module" crossorigin src="/static/client/dist/assets/index-C7xxuubz.js"></script>
<link rel="stylesheet" crossorigin href="/static/client/dist/assets/index-DtDMqk5z.css">
</head>
<body>
<div id="app"></div>

View File

@@ -1,6 +1,10 @@
<script setup>
<script setup async>
import './assets/main.css'
import NotificationList from "@/components/Notification/notificationList.vue";
import {clientStore} from "@/stores/clientStore.js";
const store = clientStore()
fetch("/client/api/serverInformation").then(res => res.json()).then(res => store.serverInformation = res.data)
</script>
<template>

View File

@@ -11,8 +11,7 @@ import {clientStore} from "@/stores/clientStore.js";
const app = createApp(App)
app.use(createPinia())
const store = clientStore()
await fetch("/client/api/serverInformation").then(res => res.json()).then(res => store.serverInformation = res.data)
app.use(router)