mirror of
https://github.com/certd/certd.git
synced 2026-04-16 05:50:50 +08:00
perf: 第三方登录允许选择logo
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user