公告板
版本库
filestore
活动
搜索
登录
main
/
onbus_crm
CRM系统前端
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
wip(form): perf form
vben
2020-12-25
4ff1c408dc1acfc49e0adc61dc2e539c0c198158
[onbus_crm.git]
/
src
/
utils
/
log.ts
1
2
3
4
5
6
7
8
9
const projectName = import.meta.env.VITE_GLOB_APP_TITLE;
export function warn(message: string) {
console.warn(`[${projectName} warn]:${message}`);
}
export function error(message: string) {
throw new Error(`[${projectName} error]:${message}`);
}