From d8cf875a85d2c1ead8f71e58ede110ca434cf167 Mon Sep 17 00:00:00 2001 From: yuan <3558860895@qq.com> Date: Thu, 14 Nov 2024 14:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=A2=9E=E5=8A=A0=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E8=B7=AF=E7=94=B1=E5=8D=AB=E5=A3=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../framework/config/ResourcesConfig.java | 1 + vue2/vue/package-lock.json | 13 +++- vue2/vue/package.json | 5 +- vue2/vue/src/components/Login.vue | 29 ++++--- vue2/vue/src/main.js | 24 +++--- vue2/vue/src/router/index.js | 19 ++++- vue2/vue/src/store.js | 28 +++++++ vue2/vue/src/views/HomeView.vue | 77 +++++++++++++++---- 8 files changed, 155 insertions(+), 41 deletions(-) create mode 100644 vue2/vue/src/store.js diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java index 3900552..b1710a1 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java @@ -70,4 +70,5 @@ public class ResourcesConfig implements WebMvcConfigurer // 返回新的CorsFilter return new CorsFilter(source); } + } \ No newline at end of file diff --git a/vue2/vue/package-lock.json b/vue2/vue/package-lock.json index 16d8596..9ad4165 100644 --- a/vue2/vue/package-lock.json +++ b/vue2/vue/package-lock.json @@ -9,10 +9,11 @@ "version": "0.1.0", "dependencies": { "axios": "^1.7.7", - "core-js": "^3.8.3", + "core-js": "^3.39.0", "element-ui": "^2.15.14", "vue": "^2.6.14", - "vue-router": "^3.5.1" + "vue-router": "^3.5.1", + "vuex": "^3.6.2" }, "devDependencies": { "@vue/cli-plugin-babel": "~5.0.0", @@ -9444,6 +9445,14 @@ "prettier": "^1.18.2 || ^2.0.0" } }, + "node_modules/vuex": { + "version": "3.6.2", + "resolved": "https://registry.npmmirror.com/vuex/-/vuex-3.6.2.tgz", + "integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw==", + "peerDependencies": { + "vue": "^2.0.0" + } + }, "node_modules/watchpack": { "version": "2.4.2", "resolved": "https://registry.npmmirror.com/watchpack/-/watchpack-2.4.2.tgz", diff --git a/vue2/vue/package.json b/vue2/vue/package.json index 9e03777..5bc9fde 100644 --- a/vue2/vue/package.json +++ b/vue2/vue/package.json @@ -8,10 +8,11 @@ }, "dependencies": { "axios": "^1.7.7", - "core-js": "^3.8.3", + "core-js": "^3.39.0", "element-ui": "^2.15.14", "vue": "^2.6.14", - "vue-router": "^3.5.1" + "vue-router": "^3.5.1", + "vuex": "^3.6.2" }, "devDependencies": { "@vue/cli-plugin-babel": "~5.0.0", diff --git a/vue2/vue/src/components/Login.vue b/vue2/vue/src/components/Login.vue index 322a7c2..e23fcb0 100644 --- a/vue2/vue/src/components/Login.vue +++ b/vue2/vue/src/components/Login.vue @@ -27,6 +27,7 @@ - - - - - -