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 = ''
     }