mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
add user settings page
This commit is contained in:
@@ -5,3 +5,16 @@ export function getSystemTheme() {
|
||||
return 'light';
|
||||
}
|
||||
}
|
||||
|
||||
export function startDownloadFile(fileName, fileData) {
|
||||
const dataObjectUrl = URL.createObjectURL(fileData);
|
||||
const dataLink = document.createElement('a');
|
||||
|
||||
dataLink.style.display = 'none';
|
||||
dataLink.href = dataObjectUrl;
|
||||
dataLink.setAttribute('download', fileName);
|
||||
|
||||
document.body.appendChild(dataLink);
|
||||
|
||||
dataLink.click();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user