mirror of
https://github.com/blossom-editor/blossom.git
synced 2026-03-12 17:41:26 +08:00
优化
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -195,6 +195,7 @@ onMounted(() => {
|
||||
})
|
||||
|
||||
onActivated(() => {
|
||||
getDocTree(false, false, false)
|
||||
getRouteQueryParams()
|
||||
})
|
||||
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user