feat(projects): 引入mockjs

This commit is contained in:
Soybean
2021-12-25 01:23:44 +08:00
parent c9c5ca9989
commit 9bc682dae8
18 changed files with 363 additions and 83 deletions

View 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);
}

View File

@ -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';

View File

@ -1,5 +0,0 @@
/** 打印log */
export function log(data: any) {
// eslint-disable-next-line no-console
console.log(data);
}