mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-04 03:19:34 +00:00
fix: backup path with webbasepath (#4223)
* Update BackupModal.vue add base path to importDB API call * fix add base path to importDB API call
This commit is contained in:
@@ -20,7 +20,7 @@ function exportDb() {
|
||||
// The Go endpoint streams x-ui.db as a download. Setting
|
||||
// window.location triggers a browser download without leaving
|
||||
// the page (the Go side responds with Content-Disposition: attachment).
|
||||
window.location = '/panel/api/server/getDb';
|
||||
window.location = window.__X_UI_BASE_PATH__+'panel/api/server/getDb';
|
||||
}
|
||||
|
||||
function importDb() {
|
||||
|
||||
Reference in New Issue
Block a user