From 0c2db9d795618d8abd5d90167b9dd96a4706204a Mon Sep 17 00:00:00 2001 From: xkloveme Date: Mon, 3 Jun 2024 11:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/main.js | 1 - vite.config.js | 10 +++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 650fdef..610d27d 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "gm-crypto": "^0.1.12", - "pinia": "^2.1.7", + "pinia": "2.1.0", "pinia-plugin-persist": "^1.0.0", "qrcode.vue": "^3.4.1", "vue": "^3.3.13", diff --git a/src/main.js b/src/main.js index 7b24cfa..e05ac2c 100644 --- a/src/main.js +++ b/src/main.js @@ -11,5 +11,4 @@ pinia.use(piniaPersist) const app = createApp(App) app.use(router) app.use(pinia) -window.pinia = pinia app.mount('#app') \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 818641e..cbc1058 100644 --- a/vite.config.js +++ b/vite.config.js @@ -13,9 +13,9 @@ export default defineConfig({ port: 5173, host: true, }, - // build:{ - // rollupOptions:{ - // external: ['pinia'] - // } - // } + build:{ + rollupOptions:{ + external: ['pinia'] + } + } }) \ No newline at end of file