修改为最新的数据库备份协议
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"
|
||||||
|
@ -447,7 +447,7 @@
|
||||||
$refs.fusion_settings_dialog.showDialog();
|
$refs.fusion_settings_dialog.showDialog();
|
||||||
getconfig();
|
getconfig();
|
||||||
"
|
"
|
||||||
v-if="$store.state.custom_defines.function_fusion"
|
v-if="$store.state.custom_defines.function_fusion"
|
||||||
>
|
>
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-icon name="open_with" />
|
<q-icon name="open_with" />
|
||||||
|
@ -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
|
||||||
|
@ -505,7 +504,7 @@
|
||||||
<q-item v-else>
|
<q-item v-else>
|
||||||
<q-item-section avatar style="margin-right: 0px; padding-right: 0px">
|
<q-item-section avatar style="margin-right: 0px; padding-right: 0px">
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
@click="isfullbtn()"
|
@click="isfullbtn()"
|
||||||
:icon="isfull ? 'fullscreen_exit' : 'fullscreen'"
|
:icon="isfull ? 'fullscreen_exit' : 'fullscreen'"
|
||||||
/>
|
/>
|
||||||
|
@ -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({
|
||||||
|
@ -992,7 +994,7 @@ export default defineComponent({
|
||||||
isfull.value = !isfull.value;
|
isfull.value = !isfull.value;
|
||||||
if ((window as any).$wujie) {
|
if ((window as any).$wujie) {
|
||||||
const $wujie = (window as any).$wujie as IWuJieInterface;
|
const $wujie = (window as any).$wujie as IWuJieInterface;
|
||||||
$wujie?.bus.$emit("isfull", isfull.value);
|
$wujie?.bus.$emit("isfull", isfull.value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue