utils.js 移除 log()
This commit is contained in:
@@ -7,7 +7,7 @@ class Utils {
|
|||||||
/**
|
/**
|
||||||
* 改变网页标题
|
* 改变网页标题
|
||||||
*
|
*
|
||||||
* @param {string} value 新的标题
|
* @param {string} [value] 新的标题
|
||||||
*/
|
*/
|
||||||
changeTitle(value) {
|
changeTitle(value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
@@ -17,23 +17,6 @@ class Utils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 输出日志
|
|
||||||
*
|
|
||||||
* @param {string} type 日志类型(info、warn、error)
|
|
||||||
* @param {string} title 日志标题
|
|
||||||
* @param {any} datas 日志内容
|
|
||||||
*/
|
|
||||||
log(type, title, ...datas) {
|
|
||||||
if (type == 'info') {
|
|
||||||
console.info(`[${title}]`, datas);
|
|
||||||
} else if (type == 'warn') {
|
|
||||||
console.warn(`[${title}]`, datas);
|
|
||||||
} else if (type == 'error') {
|
|
||||||
console.error(`[${title}]`, datas);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const utils = new Utils;
|
const utils = new Utils;
|
||||||
|
Reference in New Issue
Block a user