🎨chore: 使用 oxlint, oxfmt&格式化代码

This commit is contained in:
2026-02-08 21:16:25 +08:00
parent 9d35c6a9d8
commit 3a801ba016
78 changed files with 3367 additions and 1468 deletions

View File

@@ -1,6 +1,9 @@
import { EventEmitter } from 'events'
export const useDownload = (url: string, filename: string): {
export const useDownload = (
url: string,
filename: string
): {
download: () => void
progressEmitter: EventEmitter
} => {
@@ -18,7 +21,9 @@ export const useDownload = (url: string, filename: string): {
}
xhr.onload = function () {
if (this.status === 200) {
const blob = new Blob([this.response], { type: 'application/octet-stream' })
const blob = new Blob([this.response], {
type: 'application/octet-stream',
})
const url = window.URL.createObjectURL(blob)
const link = document.createElement('a')
link.href = url