From 5648197acb2bf130a22bc54e5f90ebeef244a39c Mon Sep 17 00:00:00 2001 From: luJianJun <2587063613@qq.com> Date: Fri, 28 Jul 2023 15:31:32 +0800 Subject: [PATCH] =?UTF-8?q?xuex=E5=88=B7=E6=96=B0=E4=B8=A2=E5=A4=B1=20=20?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E5=88=97=E8=A1=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 51 ++++++++++++++++++- package.json | 3 +- .../biserialListItem/biserialListItem.vue | 4 +- src/components/public/backToTop.vue | 12 ++--- src/components/seachPage/input.vue | 4 +- src/store/index.js | 14 ++++- src/views/HomeView.vue | 2 +- src/views/seachIndex.vue | 6 ++- yarn.lock | 20 +++++++- 9 files changed, 98 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index ecbf240..396ae9b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,8 @@ "vue-meta": "^3.0.0-alpha.2", "vue-router": "^4.0.3", "vue3-lazyload": "^0.3.6", - "vuex": "^4.0.0" + "vuex": "^4.0.0", + "vuex-persistedstate": "^4.1.0" }, "devDependencies": { "@vue/cli-plugin-babel": "~5.0.0", @@ -9043,6 +9044,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/shvl": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/shvl/-/shvl-2.0.3.tgz", + "integrity": "sha512-V7C6S9Hlol6SzOJPnQ7qzOVEWUQImt3BNmmzh40wObhla3XOYMe4gGiYzLrJd5TFa+cI2f9LKIRJTTKZSTbWgw==", + "deprecated": "older versions vulnerable to prototype pollution" + }, "node_modules/side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", @@ -9947,6 +9954,27 @@ "vue": "^3.2.0" } }, + "node_modules/vuex-persistedstate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/vuex-persistedstate/-/vuex-persistedstate-4.1.0.tgz", + "integrity": "sha512-3SkEj4NqwM69ikJdFVw6gObeB0NHyspRYMYkR/EbhR0hbvAKyR5gksVhtAfY1UYuWUOCCA0QNGwv9pOwdj+XUQ==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dependencies": { + "deepmerge": "^4.2.2", + "shvl": "^2.0.3" + }, + "peerDependencies": { + "vuex": "^3.0 || ^4.0.0-rc" + } + }, + "node_modules/vuex-persistedstate/node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/watchpack": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", @@ -17139,6 +17167,11 @@ "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", "dev": true }, + "shvl": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/shvl/-/shvl-2.0.3.tgz", + "integrity": "sha512-V7C6S9Hlol6SzOJPnQ7qzOVEWUQImt3BNmmzh40wObhla3XOYMe4gGiYzLrJd5TFa+cI2f9LKIRJTTKZSTbWgw==" + }, "side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", @@ -17786,6 +17819,22 @@ "@vue/devtools-api": "^6.0.0-beta.11" } }, + "vuex-persistedstate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/vuex-persistedstate/-/vuex-persistedstate-4.1.0.tgz", + "integrity": "sha512-3SkEj4NqwM69ikJdFVw6gObeB0NHyspRYMYkR/EbhR0hbvAKyR5gksVhtAfY1UYuWUOCCA0QNGwv9pOwdj+XUQ==", + "requires": { + "deepmerge": "^4.2.2", + "shvl": "^2.0.3" + }, + "dependencies": { + "deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==" + } + } + }, "watchpack": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", diff --git a/package.json b/package.json index 9d423c3..d459b9b 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "vue-meta": "^3.0.0-alpha.2", "vue-router": "^4.0.3", "vue3-lazyload": "^0.3.6", - "vuex": "^4.0.0" + "vuex": "^4.0.0", + "vuex-persistedstate": "^4.1.0" }, "devDependencies": { "@vue/cli-plugin-babel": "~5.0.0", diff --git a/src/components/biserialListItem/biserialListItem.vue b/src/components/biserialListItem/biserialListItem.vue index 3d15d4a..78d187c 100644 --- a/src/components/biserialListItem/biserialListItem.vue +++ b/src/components/biserialListItem/biserialListItem.vue @@ -64,7 +64,7 @@ {{ data && data.data && data.data.rent[0] }}~{{ data && data.data && data.data.rent[1] }} /{{data && data.data && data.data.rentalperiod}} - [ 租期{{ config.rentalduration[data.data && data.data.rentalduration] + [ 租期{{ listData.data.rentalduration[data.data && data.data.rentalduration] }}] @@ -148,8 +148,6 @@ let loadFinish = () => { const route = useRouter() let routePath = ref('') routePath.value = route.currentRoute.value.meta.path -//数据包 -let config=store.state.indexData.config //地区数据 let location = reactive({ data: {} }) diff --git a/src/components/public/backToTop.vue b/src/components/public/backToTop.vue index 7e50b09..be1c116 100644 --- a/src/components/public/backToTop.vue +++ b/src/components/public/backToTop.vue @@ -5,13 +5,13 @@