浏览代码

feat: 修复删除点位不正确问题

rindy 8 月之前
父节点
当前提交
0fc628880b
共有 2 个文件被更改,包括 22 次插入3 次删除
  1. 21 2
      pnpm-lock.yaml
  2. 1 1
      src/views/topicNavigation/index.vue

+ 21 - 2
pnpm-lock.yaml

@@ -35,6 +35,9 @@ importers:
       pinia:
         specifier: ^2.1.7
         version: 2.2.4(typescript@5.6.3)(vue@3.5.12(typescript@5.6.3))
+      sortablejs-vue3:
+        specifier: ^1.2.11
+        version: 1.2.11(sortablejs@1.15.6)(vue@3.5.12(typescript@5.6.3))
       vue:
         specifier: ^3.4.23
         version: 3.5.12(typescript@5.6.3)
@@ -98,7 +101,7 @@ importers:
         version: 5.1.4(vite@5.4.9(@types/node@20.16.14)(sass@1.80.3)(terser@5.36.0))(vue@3.5.12(typescript@5.6.3))
       '@vitest/coverage-v8':
         specifier: ^1.6.0
-        version: 1.6.0(vitest@1.6.0(@types/node@20.16.14)(@vitest/ui@1.6.0)(happy-dom@14.12.3)(sass@1.80.3)(terser@5.36.0))
+        version: 1.6.0(vitest@1.6.0)
       '@vitest/ui':
         specifier: ^1.6.0
         version: 1.6.0(vitest@1.6.0)
@@ -4675,6 +4678,15 @@ packages:
     resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==}
     engines: {node: '>=10'}
 
+  sortablejs-vue3@1.2.11:
+    resolution: {integrity: sha512-oKOA6N7yu2ktmqYXPHlPTQWbe9G4v16mn5ewogb+Ybc9Bk1Y+MIURrpbgedEv7f9TS5Bptvh81HGjazh5FEyJw==}
+    peerDependencies:
+      sortablejs: ^1.15.0
+      vue: ^3.2.25
+
+  sortablejs@1.15.6:
+    resolution: {integrity: sha512-aNfiuwMEpfBM/CN6LY0ibyhxPfPbyFeBTYJKCvzkJ2GkUpazIt3H+QIPAMHwqQ7tMKaHz1Qj+rJJCqljnf4p3A==}
+
   source-map-js@1.2.1:
     resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
     engines: {node: '>=0.10.0'}
@@ -7223,7 +7235,7 @@ snapshots:
       vite: 5.4.9(@types/node@20.16.14)(sass@1.80.3)(terser@5.36.0)
       vue: 3.5.12(typescript@5.6.3)
 
-  '@vitest/coverage-v8@1.6.0(vitest@1.6.0(@types/node@20.16.14)(@vitest/ui@1.6.0)(happy-dom@14.12.3)(sass@1.80.3)(terser@5.36.0))':
+  '@vitest/coverage-v8@1.6.0(vitest@1.6.0)':
     dependencies:
       '@ampproject/remapping': 2.3.0
       '@bcoe/v8-coverage': 0.2.3
@@ -10358,6 +10370,13 @@ snapshots:
       astral-regex: 2.0.0
       is-fullwidth-code-point: 3.0.0
 
+  sortablejs-vue3@1.2.11(sortablejs@1.15.6)(vue@3.5.12(typescript@5.6.3)):
+    dependencies:
+      sortablejs: 1.15.6
+      vue: 3.5.12(typescript@5.6.3)
+
+  sortablejs@1.15.6: {}
+
   source-map-js@1.2.1: {}
 
   source-map-support@0.5.21:

+ 1 - 1
src/views/topicNavigation/index.vue

@@ -268,7 +268,7 @@ const handleItemSubmit = () => {
 }
 const handlePanoDel = (index: number) => {
   const origin = dataList.value[currentPanoEditing.value].panos
-  const panoId = origin[index]
+  const panoId = origin[index].id
   origin && origin.splice(index, 1)
   sdk_mounted((sdk) => {
     sdk.Scene.whenLoaded(() => {