feat(site): 重构网站信息模块并添加应用信息相关功能

- 新增 AppInfo 接口,用于存储应用信息
- 修改 getSiteInfo API 调用路径
- 更新 site store 中的数据结构和相关方法,支持应用信息- 调整 dashboard 页面中显示的网站信息,改为应用信息
This commit is contained in:
2025-08-13 02:53:45 +08:00
parent 332982f31f
commit 3fc6d21c76
5 changed files with 99 additions and 51 deletions

View File

@@ -11,20 +11,20 @@
:height="80"
:preview="false"
style="border-radius: 8px"
:src="siteStore.websiteLogo"
:src="siteStore.logo"
fallback="/logo.png"
/>
</a-col>
<a-col :span="14">
<div class="system-info">
<h2 class="ele-text-heading">{{ siteStore.websiteName }}</h2>
<p class="ele-text-secondary">{{ siteStore.websiteComments }}</p>
<h2 class="ele-text-heading">{{ siteStore.appName }}</h2>
<p class="ele-text-secondary">{{ siteStore.description }}</p>
<a-space>
<a-tag color="blue">版本 {{ systemInfo.version }}</a-tag>
<a-tag color="green">{{ systemInfo.status }}</a-tag>
<a-tag color="blue">{{ siteStore.version }}</a-tag>
<a-tag color="green">{{ siteStore.statusText }}</a-tag>
<a-popover title="小程序码">
<template #content>
<p><img :src="siteStore.websiteDarkLogo" alt="小程序码" width="300" height="300"></p>
<p><img :src="siteStore.mpQrCode" alt="小程序码" width="300" height="300"></p>
</template>
<a-tag>
<QrcodeOutlined/>

View File

@@ -11,20 +11,20 @@
:height="80"
:preview="false"
style="border-radius: 8px"
:src="siteStore.websiteLogo"
:src="siteStore.logo"
fallback="/logo.png"
/>
</a-col>
<a-col :span="14">
<div class="system-info">
<h2 class="ele-text-heading">{{ siteStore.websiteName }}</h2>
<p class="ele-text-secondary">{{ siteStore.websiteComments }}</p>
<h2 class="ele-text-heading">{{ siteStore.appName }}</h2>
<p class="ele-text-secondary">{{ siteStore.description }}</p>
<a-space>
<a-tag color="blue">版本 {{ systemInfo.version }}</a-tag>
<a-tag color="green">{{ systemInfo.status }}</a-tag>
<a-tag color="blue">{{ siteStore.version }}</a-tag>
<a-tag color="green">{{ siteStore.statusText }}</a-tag>
<a-popover title="小程序码">
<template #content>
<p><img :src="siteStore.websiteDarkLogo" alt="小程序码" width="300" height="300"></p>
<p><img :src="siteStore.mpQrCode" alt="小程序码" width="300" height="300"></p>
</template>
<a-tag>
<QrcodeOutlined/>