front_generator: нормальные отступы для всех включаемых файлов, добавление страницы с логами для TDMA-терминала
This commit is contained in:
12
front-generator/template/common/logs-methods.js.j2
Normal file
12
front-generator/template/common/logs-methods.js.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
logsUpdate() {
|
||||
if (this.paramLogs.submitUpdateLogs) { return }
|
||||
this.paramLogs.submitUpdateLogs = true
|
||||
fetch(`/api/get/manager.log?preview=1`, {method: 'GET', credentials: 'same-origin' })
|
||||
.then(async (resp) => {
|
||||
this.paramLogs.data = await resp.text()
|
||||
})
|
||||
.catch((reason) => { this.paramLogs.data = `Ошибка при чтении логов: ${reason}` })
|
||||
.finally(() => { this.paramLogs.submitUpdateLogs = false })
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user