diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-24 02:32:05 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-24 02:32:05 +0300 |
| commit | c7926d0bc06f2ee712f6850ac58e0e37abc3b898 (patch) | |
| tree | 1950c0bc94c46ea344635f2a164ba69b92c15fc7 /web | |
| parent | 034bc5e22856fa760a1102417a988e17d2299b01 (diff) | |
[log] fix download format
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web')
| -rw-r--r-- | web/html/xui/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/xui/index.html b/web/html/xui/index.html index 1c3132d6..90c45b85 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -325,7 +325,7 @@ </a-form-item> <a-form-item style="float: right;"> <a-button type="primary" icon="download" - :href="'data:application/text;charset=utf-8,' + encodeURIComponent(logModal.logs)" download="x-ui.log"> + :href="'data:application/text;charset=utf-8,' + encodeURIComponent(logModal.logs.join('\n'))" download="x-ui.log"> </a-button> </a-form-item> </a-form> @@ -457,7 +457,7 @@ const logModal = { visible: false, - logs: '', + logs: [], rows: 20, level: 'info', syslog: false, |
