fix: 🐛 头像更新问题

This commit is contained in:
H0nGzA1
2023-04-11 22:43:33 +08:00
parent 460ae171dd
commit 13aa6dbb99
6 changed files with 70 additions and 34 deletions

View File

@@ -67,6 +67,11 @@ export function errorCreate(msg: any, notification = true) {
// throw error;
}
/**
* @description base64转file
* @param {String} base64 base64字符串
* @param {String} fileName 文件名
*/
export function base64ToFile(base64: any, fileName: string) {
// 将base64按照 , 进行分割 将前缀 与后续内容分隔开
let data = base64.split(',');