correction vue

This commit is contained in:
Alexandre_BRAVO 2024-11-19 16:25:11 +01:00
parent fbf56f4217
commit ded54af4f6
4 changed files with 19 additions and 16 deletions

View File

@ -884,6 +884,15 @@ __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');
}
} }
}); });
@ -929,13 +938,6 @@ __webpack_require__.r(__webpack_exports__);
async mounted() { async mounted() {
await this.fetchFiles(); await this.fetchFiles();
this.breadcrumbParts = this.getBreadcrumbParts(); this.breadcrumbParts = this.getBreadcrumbParts();
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 fetchFiles() { async fetchFiles() {

File diff suppressed because one or more lines are too long

View File

@ -26,6 +26,15 @@ 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

@ -132,14 +132,6 @@ export default {
async mounted() { async mounted() {
await this.fetchFiles(); await this.fetchFiles();
this.breadcrumbParts = this.getBreadcrumbParts(); this.breadcrumbParts = this.getBreadcrumbParts();
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 fetchFiles() { async fetchFiles() {