Explorar el Código

feat: 标注事件触发后逻辑调整

cuiyalong hace 10 meses
padre
commit
703bd5eb26
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      frontend/src/views/CodeList.vue

+ 5 - 0
frontend/src/views/CodeList.vue

@@ -646,6 +646,11 @@ EventsOn("spiderConfigChange", data => {
     console.log(data)
     const { key, css, url } = data
     refreshAndAsyncEditDialog(key, css)
+    // 当触发修改时候,同步给客服端一份
+    if (currentEditRow.value && Object.keys(currentEditRow.value).length <= 0) {
+        const mark = getMarkWithRow(currentEditRow.value)
+        ServerActionCurrentOpenTab(mark)
+    }
     // 判断标注url和编辑url是否相同
     // const editUrl = currentEditRow.href
     // if (url === editUrl) {