From 8a67f818a8e3fb96dfd221e30c03c08961a549a8 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Wed, 20 Sep 2023 11:01:28 +0800 Subject: [PATCH] =?UTF-8?q?vuex=E7=9A=84=E5=9F=BA=E6=9C=AC=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 14 +++++++++- package.json | 3 ++- src/App.vue | 4 +-- src/components/User/ChangeUser.vue | 14 ---------- src/components/User/UserInfo.vue | 14 ---------- src/main.js | 3 ++- src/router/index.js | 43 +++++++----------------------- src/store/index.js | 16 +++++++++++ src/views/CompositionAPIView.vue | 17 ++++++++++++ src/views/Error/PageNotFound.vue | 13 --------- src/views/Home/Home.vue | 14 ---------- src/views/OptionsAPIView.vue | 18 +++++++++++++ src/views/User/UserIndex.vue | 26 ------------------ 13 files changed, 80 insertions(+), 119 deletions(-) delete mode 100644 src/components/User/ChangeUser.vue delete mode 100644 src/components/User/UserInfo.vue create mode 100644 src/store/index.js create mode 100644 src/views/CompositionAPIView.vue delete mode 100644 src/views/Error/PageNotFound.vue delete mode 100644 src/views/Home/Home.vue create mode 100644 src/views/OptionsAPIView.vue delete mode 100644 src/views/User/UserIndex.vue diff --git a/package-lock.json b/package-lock.json index b132d0d..a3b24d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,8 @@ "core-js": "^3.8.3", "element-plus": "^2.3.12", "vue": "^3.2.13", - "vue-router": "^4.0.3" + "vue-router": "^4.0.3", + "vuex": "^4.0.2" }, "devDependencies": { "@babel/core": "^7.12.16", @@ -10640,6 +10641,17 @@ "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", "dev": true }, + "node_modules/vuex": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.0.2.tgz", + "integrity": "sha512-M6r8uxELjZIK8kTKDGgZTYX/ahzblnzC4isU1tpmEuOIIKmV+TRdc+H4s8ds2NuZ7wpUTdGRzJRtoj+lI+pc0Q==", + "dependencies": { + "@vue/devtools-api": "^6.0.0-beta.11" + }, + "peerDependencies": { + "vue": "^3.0.2" + } + }, "node_modules/watchpack": { "version": "2.4.0", "resolved": "https://registry.npmmirror.com/watchpack/-/watchpack-2.4.0.tgz", diff --git a/package.json b/package.json index 4ff6d79..1eb6237 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "core-js": "^3.8.3", "element-plus": "^2.3.12", "vue": "^3.2.13", - "vue-router": "^4.0.3" + "vue-router": "^4.0.3", + "vuex": "^4.0.2" }, "devDependencies": { "@babel/core": "^7.12.16", diff --git a/src/App.vue b/src/App.vue index 2643dd1..2ab91da 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,8 +1,8 @@