mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-06-11 03:20:24 +08:00
add frontend/vben from vben-admin-thin
This commit is contained in:
9
frontend/vben/src/utils/log.ts
Normal file
9
frontend/vben/src/utils/log.ts
Normal file
@@ -0,0 +1,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}`)
|
||||
}
|
||||
Reference in New Issue
Block a user