mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-29 18:30:16 +08:00
feat(projects): 引入mockjs
This commit is contained in:
16
src/utils/common/console.ts
Normal file
16
src/utils/common/console.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/* eslint-disable no-console */
|
||||
|
||||
/** 打印log */
|
||||
export function consoleLog(message?: any, ...optionalParams: any[]) {
|
||||
console.log(message, ...optionalParams);
|
||||
}
|
||||
|
||||
/** 打印警告 */
|
||||
export function consoleWarn(message?: any, ...optionalParams: any[]) {
|
||||
console.warn(message, ...optionalParams);
|
||||
}
|
||||
|
||||
/** 打印错误 */
|
||||
export function consoleError(message?: any, ...optionalParams: any[]) {
|
||||
console.error(message, ...optionalParams);
|
||||
}
|
||||
Reference in New Issue
Block a user