mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-10 05:59:35 +00:00
10 lines
252 B
TypeScript
10 lines
252 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}`);
|
|
}
|