From 050b7e27ef361e9843ca4b62025666c1b5a46695 Mon Sep 17 00:00:00 2001 From: luoshiwen <1140456899@qq.com> Date: Mon, 16 Jun 2025 10:56:07 +0800 Subject: [PATCH] =?UTF-8?q?6/16=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 14 +++++++------- package.json | 2 +- src/views/home/index.vue | 10 ++++++---- vite.config.js | 3 ++- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index de82400..e376f8c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "less": "^4.2.0", "moment": "^2.30.1", "three": "^0.164.1", - "uuid": "^11.0.4", + "uuid": "^11.0.5", "vue": "^3.3.4", "vue-router": "^4.2.5" }, @@ -1392,9 +1392,9 @@ "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/uuid": { - "version": "11.0.4", - "resolved": "https://registry.npmmirror.com/uuid/-/uuid-11.0.4.tgz", - "integrity": "sha512-IzL6VtTTYcAhA/oghbFJ1Dkmqev+FpQWnCBaKq/gUluLxliWvO8DPFWfIviRmYbtaavtSQe4WBL++rFjdcGWEg==", + "version": "11.0.5", + "resolved": "https://registry.npmmirror.com/uuid/-/uuid-11.0.5.tgz", + "integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" @@ -2388,9 +2388,9 @@ "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "uuid": { - "version": "11.0.4", - "resolved": "https://registry.npmmirror.com/uuid/-/uuid-11.0.4.tgz", - "integrity": "sha512-IzL6VtTTYcAhA/oghbFJ1Dkmqev+FpQWnCBaKq/gUluLxliWvO8DPFWfIviRmYbtaavtSQe4WBL++rFjdcGWEg==" + "version": "11.0.5", + "resolved": "https://registry.npmmirror.com/uuid/-/uuid-11.0.5.tgz", + "integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==" }, "vite": { "version": "4.4.11", diff --git a/package.json b/package.json index ec95dac..62c4905 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "less": "^4.2.0", "moment": "^2.30.1", "three": "^0.164.1", - "uuid": "^11.0.4", + "uuid": "^11.0.5", "vue": "^3.3.4", "vue-router": "^4.2.5" }, diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 24ca3f1..c96756e 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -801,19 +801,20 @@ function getKeywordData() { } // 上一页 function preClick() { - scheduleIndex.value--; - if (scheduleIndex.value < 0) { + + if (scheduleIndex.value == 0) { // scheduleIndex.value = schedule.value.length - 1; return; } + scheduleIndex.value--; xVal.value = -(100 / 3) * scheduleIndex.value + "%"; } // 下一页 function nextClick() { - scheduleIndex.value++; - if (scheduleIndex.value === schedule.value.length) { + if (scheduleIndex.value === schedule.value.length - 1) { return; } + scheduleIndex.value++; xVal.value = -(100 / 3) * scheduleIndex.value + "%"; } // 定时器 @@ -825,6 +826,7 @@ const handleTimer = reactive({ timer5: null, }); onUnmounted(() => { + console.log('onUnmounted'); // 清除定时器 clearTimeout(handleTimer.timer1); clearTimeout(handleTimer.timer2); diff --git a/vite.config.js b/vite.config.js index 4671bcd..59a0e95 100644 --- a/vite.config.js +++ b/vite.config.js @@ -31,7 +31,8 @@ export default defineConfig({ rewrite: (path) => path.replace('/api', '') }, '/aps': { - target: 'http://192.168.17.4:8001/', + // target: 'http://192.168.17.4:8001/', + target: 'http://172.16.1.253:8111', changeOrigin: true, //是否跨域 rewrite: (path) => path.replace('/aps', '') },