1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-08 17:40:23 +08:00
Files
paper-manager/frontend/vben/src/utils/log.ts
2023-03-10 17:18:32 +08:00

10 lines
249 B
TypeScript

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}`)
}