mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +00:00
Update BackupModal.vue
add base path to importDB API call
This commit is contained in:
parent
6efc4b0665
commit
1b4cc175ab
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ function exportDb() {
|
||||||
// The Go endpoint streams x-ui.db as a download. Setting
|
// The Go endpoint streams x-ui.db as a download. Setting
|
||||||
// window.location triggers a browser download without leaving
|
// window.location triggers a browser download without leaving
|
||||||
// the page (the Go side responds with Content-Disposition: attachment).
|
// 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() {
|
function importDb() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue