mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +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);
|
||||
}
|
@ -2,5 +2,5 @@ export * from './typeof';
|
||||
export * from './color';
|
||||
export * from './icon';
|
||||
export * from './browser';
|
||||
export * from './log';
|
||||
export * from './console';
|
||||
export * from './number';
|
||||
|
@ -1,5 +0,0 @@
|
||||
/** 打印log */
|
||||
export function log(data: any) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(data);
|
||||
}
|
Reference in New Issue
Block a user