From f97463f5eaa6bcea377739c275d685f55cfaf015 Mon Sep 17 00:00:00 2001 From: scrin <2277317060@qq.com> Date: Sat, 15 Nov 2025 17:13:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A0=E9=99=A4=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 48b8039..c1bc95e 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -987,7 +987,7 @@ const getShildTableList = () => { } // 障碍物列表 -const tableData1 = ref([]) +const tableData1 = ref([{Lon:1},{Lon:2}]) // 上传图片 const uploadRef = ref(null) const uploadFiles = async (e) => { @@ -1032,10 +1032,12 @@ const dialogImageUrl = ref('') const imgDialog = ref(false) // 删除 const delPoint = (e) => { + // tableData1.value.splice((currentPage1.value - 1) * pageSize1.value + e.$index, 1); let arr = JSON.parse(JSON.stringify(tableData1.value)) arr.splice((currentPage1.value - 1) * pageSize1.value + e.$index, 1); tableData1.value = arr ||[] - if(e.index ===dotIndex.value ){ + if((currentPage1.value - 1) * pageSize1.value + e.$index === dotIndex.value ){ + console.log(123) dotIndex.value = -1 } } @@ -1366,7 +1368,7 @@ onMounted(() => { getSocket() getOption() getShildTableList() - // testFun() + testFun() getDotsData() })