fix(pwa): 修复 manifest.json 未被引用导致浏览器无法识别 PWA (#640)

在 index.html 中添加 manifest 引用,并补全 PWA 必需字段
This commit is contained in:
alger
2026-04-10 23:05:27 +08:00
parent 03b52cd6e2
commit 8e3e4e610c
2 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
{
"name": "Alger Music PWA",
"name": "Alger Music Player",
"short_name": "AlgerMusic",
"description": "AlgerMusicPlayer 音乐播放器,支持在线播放、歌词显示、音乐下载等功能。",
"start_url": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#000000",
"icons": [
{
"src": "./icon.png",

View File

@@ -25,6 +25,7 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="manifest" href="/manifest.json" />
<!-- 资源预加载 -->
<link rel="preload" href="./assets/icon/iconfont.css" as="style" />