更新0.1.1版本

This commit is contained in:
Ah jung
2021-07-07 10:26:14 +08:00
parent b74b6e61a4
commit d423f27e94
174 changed files with 15966 additions and 0 deletions

9
src/utils/log.ts Normal file
View 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 }`);
}