This commit is contained in:
jasminexz
2023-09-01 01:38:33 +08:00
parent 373b126c9f
commit 55c189f914
4 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ const download = (file: BackupFile) => {
return;
}
articleBackupDownloadApi({ filename: file.filename }).then(resp => {
articleBackupDownloadApi({ filename: file.filename + '.zip' }).then(resp => {
let filename: string = resp.headers.get('content-disposition')
let filenameRegex = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/;
let matches = filenameRegex.exec(filename);

View File

@@ -195,6 +195,7 @@ onMounted(() => {
})
onActivated(() => {
getDocTree(false, false, false)
getRouteQueryParams()
})

View File

@@ -152,7 +152,6 @@ provide(provideKeyDocTree, docTreeData)
*/
const getDocTree = () => {
docTreeLoading.value = true;
docTreeData.value = []
docTreeApi({ onlyPicture: true }).then(resp => {
const docTree: DocTree[] = resp.data
// 两种类型的交界位置

Binary file not shown.

Before

Width:  |  Height:  |  Size: 460 KiB