perf: 第三方登录允许选择logo

This commit is contained in:
xiaojunnuo
2025-12-03 00:35:17 +08:00
parent 78b1650bdb
commit bb3085ef84
11 changed files with 57 additions and 37 deletions

View File

@@ -69,7 +69,7 @@ export function errorLog(error: any, notify = true) {
* @description 创建一个错误
*/
export function errorCreate(msg: string, notify = true, data?: any) {
const err = new CodeError(msg, data.code, data.data);
const err = new CodeError(msg, data?.code || 1, data?.data);
console.error("errorCreate", err);
if (notify) {
uiContext.get().notification.error({ message: err.message });