duy 1 年之前
父节点
当前提交
e897d0dac6
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/views/transfer/write-report.vue

+ 1 - 3
src/views/transfer/write-report.vue

@@ -81,7 +81,6 @@ onMounted(() => {
 const state = ref(1)
 const docxUrl = ref('')
 const saveUrl = ref('http://192.168.0.128:8090/blade-archive/archivesauto/callbackSave')
-const dataId = ref('')
 const dataKey = ref('')
 //const docxUrl = ref('https://bladex-test-info.oss-cn-chengdu.aliyuncs.com//upload/20230317/e2bdc6581e397b810b46ac7cd71b111b.docx')
 //获取文档地址
@@ -91,8 +90,7 @@ const geDocxUrl = async ()=>{
     })
     if (!error && code === 200) {
         docxUrl.value = data['worldUrl']
-        dataId.value = data['id']
-        dataKey.value = dataId.value + '_' + Math.random() + ''
+        dataKey.value = data['id'] + '_' + Math.random() + ''
     } else {
         docxUrl.value = ''
     }