修改为最新的数据库备份协议
This commit is contained in:
parent
a2102bdb5e
commit
71abf1bba2
|
@ -1,8 +1,8 @@
|
||||||
export namespace HttpProtocol {
|
export namespace HttpProtocol {
|
||||||
export const DefaultHttpPort = 80;
|
export const DefaultHttpPort = 80;
|
||||||
export const RequestUploadFile = "/upload_file";
|
export const RequestUploadFile = "/upload_file";
|
||||||
export const RequestPathUpdateDBBackupFile = "/common/update_db_backup_file";
|
export const RequestPathUpdateDBBackupFile = "/update_db_backup_file";
|
||||||
export const RequestPathDBBackup = "/db_backup";
|
export const RequestPathDBBackup = "/download_db_backup_file";
|
||||||
export const RequestPathListFile = "/list_file";
|
export const RequestPathListFile = "/list_file";
|
||||||
export const RequestPathCreateDirectory = "/create_directory";
|
export const RequestPathCreateDirectory = "/create_directory";
|
||||||
export const RequestPathCheckFileSupport = "/check_file_support";
|
export const RequestPathCheckFileSupport = "/check_file_support";
|
||||||
|
|
|
@ -305,7 +305,10 @@
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
:disable="!$store.state.power_state"
|
:disable="!$store.state.power_state"
|
||||||
v-if="$store.state.isLedPlayer()&&!$store.state.custom_defines.function_magic_wall"
|
v-if="
|
||||||
|
$store.state.isLedPlayer() &&
|
||||||
|
!$store.state.custom_defines.function_magic_wall
|
||||||
|
"
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@click="
|
@click="
|
||||||
($store.state.isSpecialVideo()
|
($store.state.isSpecialVideo()
|
||||||
|
@ -338,9 +341,6 @@
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
:disable="!$store.state.power_state"
|
:disable="!$store.state.power_state"
|
||||||
|
@ -457,7 +457,6 @@
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
|
|
||||||
|
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
|
@ -711,9 +710,9 @@ export default defineComponent({
|
||||||
show_device_list.value =
|
show_device_list.value =
|
||||||
typeof (<any>window).user_search?.hide_device_list == "undefined";
|
typeof (<any>window).user_search?.hide_device_list == "undefined";
|
||||||
});
|
});
|
||||||
let isfan=ref(true)
|
let isfan = ref(true);
|
||||||
if ((window as any).$wujie) {
|
if ((window as any).$wujie) {
|
||||||
isfan.value=false
|
isfan.value = false;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
show_advanced_menu,
|
show_advanced_menu,
|
||||||
|
@ -738,8 +737,11 @@ export default defineComponent({
|
||||||
console.log(url.toString());
|
console.log(url.toString());
|
||||||
let response = await api.get(url.toString());
|
let response = await api.get(url.toString());
|
||||||
if (response.status == 200 && response && response.data) {
|
if (response.status == 200 && response && response.data) {
|
||||||
url.pathname =
|
console.log(response.data);
|
||||||
HttpProtocol.RequestPathDBBackup + "/" + response.data;
|
|
||||||
|
url.pathname = HttpProtocol.RequestPathDBBackup;
|
||||||
|
url.searchParams.append("name", response.data);
|
||||||
|
console.log(url);
|
||||||
openURL(url.toString());
|
openURL(url.toString());
|
||||||
} else {
|
} else {
|
||||||
$q.notify({
|
$q.notify({
|
||||||
|
|
Loading…
Reference in New Issue