correction vue

This commit is contained in:
Alexandre_BRAVO 2024-11-19 16:27:48 +01:00
parent ded54af4f6
commit 2a2c31b55f
4 changed files with 15 additions and 19 deletions

View File

@ -884,15 +884,6 @@ __webpack_require__.r(__webpack_exports__);
components: { components: {
FileTable: _components_FileTable_vue__WEBPACK_IMPORTED_MODULE_0__["default"], FileTable: _components_FileTable_vue__WEBPACK_IMPORTED_MODULE_0__["default"],
WebContentViewer: _components_WebContentViewer_vue__WEBPACK_IMPORTED_MODULE_1__["default"] WebContentViewer: _components_WebContentViewer_vue__WEBPACK_IMPORTED_MODULE_1__["default"]
},
mounted() {
const webTransferDiv = document.getElementById('archiveInfos');
if (webTransferDiv) {
this.archiveUrl = webTransferDiv.dataset.archiveUrl;
this.token = webTransferDiv.dataset.token;
} else {
console.error('Pas d\'informations pour recuperer l\'archive');
}
} }
}); });
@ -1064,6 +1055,13 @@ __webpack_require__.r(__webpack_exports__);
}, },
async mounted() { async mounted() {
await this.loadZipContent(); await this.loadZipContent();
const webTransferDiv = document.getElementById('archiveInfos');
if (webTransferDiv) {
this.archiveUrl = webTransferDiv.dataset.archiveUrl;
this.token = webTransferDiv.dataset.token;
} else {
console.error('Pas d\'informations pour recuperer l\'archive');
}
}, },
methods: { methods: {
async loadZipContent() { async loadZipContent() {

File diff suppressed because one or more lines are too long

View File

@ -26,15 +26,6 @@ export default {
components: { components: {
FileTable, FileTable,
WebContentViewer WebContentViewer
},
mounted() {
const webTransferDiv = document.getElementById('archiveInfos');
if (webTransferDiv) {
this.archiveUrl = webTransferDiv.dataset.archiveUrl;
this.token = webTransferDiv.dataset.token;
} else {
console.error('Pas d\'informations pour recuperer l\'archive');
}
} }
} }
</script> </script>

View File

@ -79,6 +79,13 @@ export default {
}, },
async mounted() { async mounted() {
await this.loadZipContent(); await this.loadZipContent();
const webTransferDiv = document.getElementById('archiveInfos');
if (webTransferDiv) {
this.archiveUrl = webTransferDiv.dataset.archiveUrl;
this.token = webTransferDiv.dataset.token;
} else {
console.error('Pas d\'informations pour recuperer l\'archive');
}
}, },
methods: { methods: {
async loadZipContent() { async loadZipContent() {