Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mall-webview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
frontend
mall-webview
Commits
a660c6f3
Commit
a660c6f3
authored
Apr 14, 2021
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: vconsole
parent
2fdba0a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
index.html
public/index.html
+4
-0
main.ts
src/main.ts
+4
-4
No files found.
public/index.html
View file @
a660c6f3
...
...
@@ -9,6 +9,10 @@
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_2425189_lvk0clvlo2.css"
>
<title><
%=
htmlWebpackPlugin
.
options
.
title
%
></title>
<script
src=
"https://ssl.captcha.qq.com/TCaptcha.js"
></script>
<
%
if
(
String
(
VUE_APP_DEPLOY_MODE
)
===
'
test
')
{
%
>
<script
src=
"http://wechatfe.github.io/lib/vconsole/3.4.0/vconsole.min.js"
></script>
<script>
new
window
.
VConsole
({});
</script>
<
%
}
%
>
<script>
(
function
flexible
(
window
,
document
)
{
var
docEl
=
document
.
documentElement
...
...
src/main.ts
View file @
a660c6f3
...
...
@@ -5,10 +5,10 @@ import router from "./router";
import
store
from
"./store"
;
import
"./assets/style/normalize.css"
;
if
(
process
.
env
.
VUE_APP_DEPLOY_MODE
===
"test"
)
{
const
VConsole
=
require
(
"vconsole"
);
new
VConsole
();
}
//
if (process.env.VUE_APP_DEPLOY_MODE === "test") {
//
const VConsole = require("vconsole");
//
new VConsole();
//
}
createApp
(
App
)
.
use
(
store
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment