|
|
@@ -62,6 +62,7 @@
|
|
|
|
|
|
<script>
|
|
|
import XLSX from 'xlsx'
|
|
|
+import { getResultList } from 'staticPub/config'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -80,7 +81,7 @@ export default {
|
|
|
const formData = new FormData()
|
|
|
formData.append('file', f)
|
|
|
formData.append('name', k ? 'construction_data_2' : 'construction_data_1')
|
|
|
- fetch('http://127.0.0.1:8000/upload-file', {
|
|
|
+ fetch(getResultList.fileUrl, {
|
|
|
method: 'POST',
|
|
|
body: formData
|
|
|
})
|