From 65deff04f76efc5be67504fdc4ffbc70838e869a Mon Sep 17 00:00:00 2001
From: fzk <458813868@qq.com>
Date: Tue, 27 Feb 2024 16:17:21 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A0=E6=B3=95=E7=BC=93=E5=AD=98html?=
=?UTF-8?q?=E5=90=8E=E9=9D=A2=E5=B8=A6=E5=8F=82=E6=95=B0=E7=9A=84=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
packages/web/src/db/index.ts | 2 +-
packages/web/src/vite-env.d.ts | 1 +
packages/web/vite.config.ts | 7 +++++--
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/packages/web/src/db/index.ts b/packages/web/src/db/index.ts
index 84ac5bdf..ee4afb1f 100644
--- a/packages/web/src/db/index.ts
+++ b/packages/web/src/db/index.ts
@@ -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',
diff --git a/packages/web/src/vite-env.d.ts b/packages/web/src/vite-env.d.ts
index 698fb4f4..f30b7bb3 100644
--- a/packages/web/src/vite-env.d.ts
+++ b/packages/web/src/vite-env.d.ts
@@ -1,4 +1,5 @@
///
+///
export {};
diff --git a/packages/web/vite.config.ts b/packages/web/vite.config.ts
index a1d4cd4e..41b6e0b1 100644
--- a/packages/web/vite.config.ts
+++ b/packages/web/vite.config.ts
@@ -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: [
@@ -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,