提交 | 用户 | age | ||
66acb2 | 1 | const projectName = import.meta.env.VITE_GLOB_APP_TITLE; |
46e087 | 2 | |
66acb2 | 3 | export function warn(message: string) { |
V | 4 | console.warn(`[${projectName} warn]:${message}`); |
5 | } | |
4ff1c4 | 6 | |
V | 7 | export function error(message: string) { |
8 | throw new Error(`[${projectName} error]:${message}`); | |
9 | } |