From 44ad220cdd7eb3c967a4ccac0b2e5b0c0e22738e Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期日, 29 五月 2022 21:40:32 +0800 Subject: [PATCH] 使用Pinia代替Vuex进行数据存储 --- package.json | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index d4a0eaa..5fbdb40 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "license": "MIT", "scripts": { "dev": "vite", - "build:prod": "vite build", + "build:prod": "vite build", "build:stage": "vite build --mode staging", "preview": "vite preview" }, @@ -16,6 +16,7 @@ }, "dependencies": { "@element-plus/icons-vue": "1.1.4", + "@vueuse/core": "8.5.0", "axios": "0.26.1", "echarts": "5.3.2", "element-plus": "2.1.8", @@ -24,19 +25,19 @@ "js-cookie": "3.0.1", "jsencrypt": "3.2.1", "nprogress": "0.2.0", + "pinia": "2.0.14", "vue": "3.2.31", "vue-cropper": "1.0.3", - "vue-router": "4.0.14", - "vuex": "4.0.2" + "vue-router": "4.0.14" }, "devDependencies": { - "@vitejs/plugin-vue": "2.3.1", - "@vue/compiler-sfc": "3.2.31", - "sass": "1.50.0", - "unplugin-auto-import": "0.6.9", - "vite": "2.6.14", + "@vitejs/plugin-vue": "2.3.3", + "@vue/compiler-sfc": "3.2.36", + "sass": "1.52.1", + "unplugin-auto-import": "0.8.5", + "vite": "2.9.9", "vite-plugin-compression": "0.5.1", - "vite-plugin-svg-icons": "1.0.5", + "vite-plugin-svg-icons": "2.0.1", "vite-plugin-vue-setup-extend": "0.4.0" } } -- Gitblit v1.9.3