feat: 为Apple/PWA进行图标适配
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m23s

This commit is contained in:
2025-12-24 14:56:28 +08:00
parent 7611d4f079
commit b71ee98129
4 changed files with 31 additions and 1 deletions

View File

@ -20,7 +20,17 @@ export default defineNuxtConfig({
htmlAttrs: { htmlAttrs: {
lang: 'zh', lang: 'zh',
}, },
link: [{ rel: 'icon', type: 'image/x-icon', href: '/jinshen-logo.ico' }], link: [
{ rel: 'icon', type: 'image/x-icon', href: '/jinshen-logo.ico' },
{
rel: 'apple-touch-icon',
href: '/jinshen-logo.png',
},
{
rel: 'manifest',
href: '/manifest.json',
},
],
}, },
}, },

BIN
public/logo196x196.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
public/logo512x512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

20
public/manifest.json Normal file
View File

@ -0,0 +1,20 @@
{
"name": "金申机械制造有限公司",
"short_name": "金申机械",
"icons": [
{
"src": "/logo196x196.png",
"sizes": "196x196",
"type": "image/png"
},
{
"src": "/logo512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": ".",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#0f172a"
}