🐛 Fix(custom): fix webdav buffer usage

ISSUES CLOSED: #384
This commit is contained in:
Kuingsmile
2025-09-03 13:27:02 +08:00
parent ef7752bb7f
commit 58ba8331cc
4 changed files with 9 additions and 2 deletions

View File

@@ -61,7 +61,8 @@ async function getWebdavHeader(key: string) {
}
} else {
headers = {
Authorization: 'Basic ' + Buffer.from(`${props.config.username}:${props.config.password}`).toString('base64')
Authorization:
'Basic ' + window.node.buffer.from(`${props.config.username}:${props.config.password}`).toString('base64')
}
}
return headers