diff --git a/build/plugins/index.ts b/build/plugins/index.ts
index 97fc3e2d..f9e261c7 100644
--- a/build/plugins/index.ts
+++ b/build/plugins/index.ts
@@ -5,6 +5,7 @@ import unocss from '@unocss/vite';
import progress from 'vite-plugin-progress';
import VueDevtools from 'vite-plugin-vue-devtools';
import pageRoute from '@soybeanjs/vite-plugin-vue-page-route';
+import { webUpdateNotice } from '@plugin-web-update-notification/vite';
import unplugin from './unplugin';
import mock from './mock';
import visualizer from './visualizer';
@@ -27,7 +28,15 @@ export function setupVitePlugins(viteEnv: ImportMetaEnv): (PluginOption | Plugin
...unplugin(viteEnv),
unocss(),
mock(viteEnv),
- progress()
+ progress(),
+ webUpdateNotice({
+ notificationProps: {
+ title: 'π ζζ°ηζ¬δΊ',
+ description: 'ηΉε»ε·ζ°ι‘΅ι’θ·εζζ°ηζ¬',
+ buttonText: 'ε·ζ°',
+ dismissButtonText: 'εΏ½η₯'
+ }
+ })
];
if (viteEnv.VITE_VISUALIZER === 'Y') {
diff --git a/index.html b/index.html
index 0b1834be..860efc0e 100644
--- a/index.html
+++ b/index.html
@@ -3,6 +3,10 @@
+
+
+
+
%VITE_APP_NAME%
diff --git a/package.json b/package.json
index 118d6a3a..3a3bebdd 100644
--- a/package.json
+++ b/package.json
@@ -87,6 +87,7 @@
"@amap/amap-jsapi-types": "0.0.13",
"@iconify/json": "2.2.111",
"@iconify/vue": "4.1.1",
+ "@plugin-web-update-notification/vite": "^1.6.5",
"@soybeanjs/cli": "0.7.1",
"@soybeanjs/vite-plugin-vue-page-route": "0.0.10",
"@types/bmapgl": "0.0.7",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c93d7d81..ed225c54 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -102,6 +102,9 @@ devDependencies:
'@iconify/vue':
specifier: 4.1.1
version: 4.1.1(vue@3.3.4)
+ '@plugin-web-update-notification/vite':
+ specifier: ^1.6.5
+ version: 1.6.5(vite@4.4.9)
'@soybeanjs/cli':
specifier: 0.7.1
version: 0.7.1
@@ -2170,6 +2173,19 @@ packages:
tslib: 2.6.2
dev: true
+ /@plugin-web-update-notification/core@1.6.5:
+ resolution: {integrity: sha512-DgyeVczO3nziivhI1p9+iWILFwnBmH0tmlVJKMf6q3YlFSqG8pDgNEylBN77Whwkuso2JrBcuhLqHSAnm1tiYw==}
+ dev: true
+
+ /@plugin-web-update-notification/vite@1.6.5(vite@4.4.9):
+ resolution: {integrity: sha512-11nsEiOdDRZFbsSTNHWN4dA/dLoABwCPqErQZtDndPOQF9dW3TVpyCm4YZ6uuRv5RdretK2ELq+2kDkDFB4uFQ==}
+ peerDependencies:
+ vite: '>4.0.0 || ^3.0.0 || ^2.0.0'
+ dependencies:
+ '@plugin-web-update-notification/core': 1.6.5
+ vite: 4.4.9(@types/node@20.5.9)(sass@1.66.1)
+ dev: true
+
/@pnpm/config.env-replace@1.1.0:
resolution: {integrity: sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==}
engines: {node: '>=12.22.0'}