修改图标和权限*拦截邮件

This commit is contained in:
eoao
2025-09-01 08:22:22 +08:00
parent 6f25991ff2
commit 97a7950808
23 changed files with 9707 additions and 14944 deletions

View File

@@ -17,9 +17,8 @@ export default defineConfig(({mode}) => {
base: env.VITE_STATIC_URL || '/',
plugins: [vue(),
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['favicon.svg', 'robots.txt'],
registerType: 'autoUpdate', // 配置 service worker 的注册方式
includeAssets: ['favicon.svg', 'robots.txt'], // 指定需要包含的静态资源
manifest: {
name: 'Cloud Mail',
short_name: 'Cloud Mail',
@@ -27,27 +26,10 @@ export default defineConfig(({mode}) => {
theme_color: '#FFFFFF',
icons: [
{
src: 'mail-192.png',
src: 'mail-pwa.png',//像素尺寸一定要对应
sizes: '192x192',
type: 'image/png',
},
{
src: 'mail-512.png',
sizes: '512x512',
type: 'image/png'
},
{
src: 'mail-512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any'
},
{
src: 'mail-512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable'
},
}
],
},
}),