File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ import 'highlight.js/styles/github.css' //导入代码高亮样式 新版
55
55
import Logger from '@/utils/Logger'
56
56
57
57
// 本地开发模式 全局引入 element-plus 样式,加快第一次进入速度
58
- if ( isDevMode ( ) == true ) {
58
+ if ( isDevMode ( ) ) {
59
59
import ( 'element-plus/dist/index.css' )
60
60
}
61
61
Original file line number Diff line number Diff line change 1
1
export const isDevMode = ( ) => {
2
2
const dev = import . meta. env . VITE_DEV
3
- if ( dev && dev === true ) {
3
+ if ( dev && dev === ' true' ) {
4
4
return true
5
5
} else {
6
6
return false
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ interface ImportMetaEnv {
11
11
readonly VITE_APP_TITLE : string
12
12
readonly VITE_PORT : number
13
13
readonly VITE_OPEN : string
14
- readonly VITE_DEV : boolean
14
+ readonly VITE_DEV : string
15
15
readonly VITE_APP_CAPTCHA_ENABLE : string
16
16
readonly VITE_APP_TENANT_ENABLE : string
17
17
readonly VITE_BASE_URL : string
You can’t perform that action at this time.
0 commit comments