1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-07-03 01:39:22 +00:00

Compare commits

..

No commits in common. "ac0c491765df4262908deeb888eac35d0f35d772" and "0f9ad4f81a0a12b82f671b8da5523093577f7d8c" have entirely different histories.

View File

@ -14,7 +14,6 @@ import { fileURLToPath, URL } from 'node:url'
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
base: './',
plugins: [ plugins: [
VueRouter(), VueRouter(),
Layouts(), Layouts(),
@ -40,7 +39,7 @@ export default defineConfig({
runtimeCaching: [ runtimeCaching: [
{ {
urlPattern: ({ url, sameOrigin }) => { urlPattern: ({ url, sameOrigin }) => {
return sameOrigin && url.pathname.endsWith('/assets/'); return sameOrigin && url.pathname.startsWith('/assets/');
}, },
handler: 'CacheFirst', handler: 'CacheFirst',
options: { options: {
@ -104,28 +103,28 @@ export default defineConfig({
theme_color: '#212121', theme_color: '#212121',
background_color: '#212121', background_color: '#212121',
display: 'standalone', display: 'standalone',
start_url: './', start_url: '/',
edge_side_panel: { edge_side_panel: {
default_path: './', default_path: '/',
}, },
icons: [ icons: [
{ {
src: './pwa/image/pwa-64x64.png', src: '/pwa/image/pwa-64x64.png',
sizes: '64x64', sizes: '64x64',
type: 'image/png' type: 'image/png'
}, },
{ {
src: './pwa/image/pwa-192x192.png', src: '/pwa/image/pwa-192x192.png',
sizes: '192x192', sizes: '192x192',
type: 'image/png' type: 'image/png'
}, },
{ {
src: './pwa/image/pwa-512x512.png', src: '/pwa/image/pwa-512x512.png',
sizes: '512x512', sizes: '512x512',
type: 'image/png' type: 'image/png'
}, },
{ {
src: './pwa/image/maskable-icon-512x512.png', src: '/pwa/image/maskable-icon-512x512.png',
sizes: '512x512', sizes: '512x512',
type: 'image/png', type: 'image/png',
purpose: 'maskable' purpose: 'maskable'
@ -135,10 +134,10 @@ export default defineConfig({
{ {
name: '随机点名', name: '随机点名',
short_name: '随机点名', short_name: '随机点名',
url: './#random-picker', url: '/#random-picker',
icons: [ icons: [
{ {
src: './pwa/image/pwa-64x64.png', src: '/pwa/image/pwa-64x64.png',
sizes: '64x64', sizes: '64x64',
type: 'image/png' type: 'image/png'
} }