feat:登录接口对接

This commit is contained in:
zhouwentao 2025-12-19 20:32:53 +08:00
parent 6c16860fae
commit 57f7937c2d
4 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,7 @@
{ {
"cSpell.words": [ "cSpell.words": [
"antfu", "antfu",
"beian",
"demi", "demi",
"iconify", "iconify",
"intlify", "intlify",

View File

@ -113,7 +113,7 @@ async function toggleLocales() {
</p> </p>
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<img src="beian.ico" alt="备案图标" class="h-4 w-4"> <img src="/beian.ico" alt="备案图标" class="h-4 w-4">
<a href="http://beian.miit.gov.cn/" target="_blank" class="text-gray-400 hover:text-gray-500 dark:hover:text-gray-300">豫ICP备2024048033号</a> <a href="http://beian.miit.gov.cn/" target="_blank" class="text-gray-400 hover:text-gray-500 dark:hover:text-gray-300">豫ICP备2024048033号</a>
</div> </div>

View File

@ -177,8 +177,8 @@ function handleMobileLinkClick() {
</div> </div>
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<span class="text-sm text-gray-700 dark:text-gray-200">欢迎, {{ userStore.userInfo.username }}</span> <span class="text-sm text-gray-700 dark:text-gray-200">欢迎, {{ userStore.userInfo.username }}</span>
<a href="https://github.com/antfu/vitesse" target="_blank" class="text-gray-400 transition-colors hover:text-gray-500 dark:hover:text-gray-300"> <a target="_blank" class="text-gray-400 transition-colors hover:text-gray-500 dark:hover:text-gray-300">
<span class="sr-only">GitHub</span> <span class="sr-only"></span>
<div i-carbon:document-horizontal class="text-xl text-gray-8" /> <div i-carbon:document-horizontal class="text-xl text-gray-8" />
</a> </a>
<button <button

View File

@ -138,6 +138,11 @@ export default defineConfig(({ mode }) => {
type: 'image/png', type: 'image/png',
purpose: 'any maskable', purpose: 'any maskable',
}, },
{
src: '/beian.ico',
sizes: '16x16',
type: 'image/x-icon',
},
], ],
}, },
}), }),