Skip to content

Commit

Permalink
fix: 无法缓存html后面带参数的页面
Browse files Browse the repository at this point in the history
  • Loading branch information
027xiguapi committed Feb 27, 2024
1 parent ceb2ac4 commit 65deff0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/web/src/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class MySubClassedDexie extends Dexie {

constructor() {
super('pear-rec:database');
this.version(1).stores({
this.version(1.1).stores({
users: '++id, uuid, userName, userType, createdAt, createdBy, updatedAt, updatedBy',
records:
'++id, filePath, fileData, fileType, fileName, mark, userId, createdAt, createdBy, updatedAt, updatedBy',
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference types="vite/client" />
/// <reference types="vite-plugin-pwa/client" />

export {};

Expand Down
7 changes: 5 additions & 2 deletions packages/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default ({ mode }) => {
description:
'pear-rec is a software with screenshot, screen recording, audio recording and video recording.',
theme_color: '#fff',
start_url: './',
start_url: './home.html',
display: 'standalone',
background_color: '#fff',
icons: [
Expand All @@ -109,13 +109,16 @@ export default ({ mode }) => {
],
screenshots: [
{
src: '/img/screenshot1.jpg',
src: '/imgs/screenshot1.jpg',
type: 'image/jpg',
sizes: '944x656',
form_factor: 'narrow',
},
],
},
workbox: {
ignoreURLParametersMatching: [/.*/],
},
}),
],
// build: mode == "lib" ? buildOptionsLib : buildOptionsProject,
Expand Down

0 comments on commit 65deff0

Please sign in to comment.