feat: add Logger

This commit is contained in:
xingyu
2023-02-01 16:21:29 +08:00
parent 19fe7ea8f9
commit ba40db4ba6
2 changed files with 105 additions and 2 deletions

View File

@@ -39,8 +39,9 @@ import './permission'
import { isDevMode } from '@/utils/env'
if (isDevMode()) {
console.info(isDevMode())
import Logger from '@/utils/logger'
if (isDevMode() == true) {
import('element-plus/dist/index.css')
}
@@ -68,3 +69,5 @@ const setupAll = async () => {
}
setupAll()
Logger.prettyPrimary(`欢迎使用`, import.meta.env.VITE_APP_TITLE)