Explorar o código

文件同步contractId修改

duy hai 1 ano
pai
achega
eb3fa0929d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/components/tree/hc-tree.vue

+ 2 - 2
src/components/tree/hc-tree.vue

@@ -442,7 +442,7 @@ const syncNodeMoadl = (node)=>{
     })
 }
 //文件同步
-const filesyncNodeMoadl = async (node)=>{
+const filesyncNodeMoadl = async (node, data)=>{
     window?.$messageBox?.alert('是否同步该节点?', '提示', {
         showCancelButton: true,
         confirmButtonText: '确认同步',
@@ -451,7 +451,7 @@ const filesyncNodeMoadl = async (node)=>{
             if (action === 'confirm') {
                 const { code } = await syncFileTree({
                     projectId:projectId.value,
-                    contractId:contractId.value,
+                    contractId:data.contractId,
                 })
                 if (code == 200) {
                   await window.$message?.success('同步成功')