Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-23 12:53:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f6dacf709adfaec068eeb02b1b193c169ffb3bc
9f6dacf7
1 parent
9b58bf79
调试功能配置调整
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
.env
src/utils/vconsole.js
.env
View file @
9f6dacf
...
...
@@ -9,3 +9,6 @@ VITE_PROXY_PREFIX = /srv/
# 打包输出文件夹名称
VITE_OUTDIR = voice
# 是否开启调试
VITE_CONSOLE = 0
...
...
src/utils/vconsole.js
View file @
9f6dacf
...
...
@@ -3,7 +3,7 @@ import VConsole from 'vconsole';
// const vConsole = new VConsole();
let
vConsole
=
''
;
// 或者使用配置参数来初始化,详情见文档
if
(
import
.
meta
.
env
.
DEV
)
{
if
(
+
import
.
meta
.
env
.
VITE_CONSOLE
)
{
vConsole
=
new
VConsole
({
theme
:
'dark'
});
}
...
...
Please
register
or
login
to post a comment