From ab737f8a75ffda03f891608f7b0f687f1d4513bf Mon Sep 17 00:00:00 2001 From: molong Date: Thu, 15 Jan 2026 09:51:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96pinia=E6=8C=81=E4=B9=85?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 + src/App.vue | 12 ++- src/config/index.js | 50 +++++++++++- src/main.js | 5 -- src/stores/index.js | 4 + src/stores/modules/i18n.js | 51 ++++++------ src/stores/modules/layout.js | 104 +++++++++++++----------- src/stores/modules/user.js | 149 ++++++++++++++++++----------------- yarn.lock | 17 ++++ 9 files changed, 239 insertions(+), 155 deletions(-) diff --git a/package.json b/package.json index f345c54..d8bb71c 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,11 @@ "dependencies": { "@element-plus/icons-vue": "^2.3.2", "axios": "^1.13.2", + "crypto-js": "^4.2.0", "element-plus": "^2.13.1", "nprogress": "^0.2.0", "pinia": "^3.0.4", + "pinia-plugin-persistedstate": "^4.7.1", "vue": "^3.5.26", "vue-i18n": "^11.2.8", "vue-router": "^4.6.4" diff --git a/src/App.vue b/src/App.vue index ffd3b71..8d74a5c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,4 +1,14 @@ - +