Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-report
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
4
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0d8d1d8f
authored
Mar 31, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
动态控制vConsole
1 parent
6c29d6ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main.js
src/main.js
View file @
0d8d1d8
...
@@ -38,8 +38,7 @@ Vue.prototype.to = function (name, params) {
...
@@ -38,8 +38,7 @@ Vue.prototype.to = function (name, params) {
// import 'lib-flexible/flexible.js'
// import 'lib-flexible/flexible.js'
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
// import VConsole from 'vconsole'
import
VConsole
from
'vconsole'
// const vConsole = new VConsole()
const
isMock
=
true
const
isMock
=
true
fetchConfig
(
!
isMock
).
then
(
res
=>
{
fetchConfig
(
!
isMock
).
then
(
res
=>
{
...
@@ -47,6 +46,7 @@ fetchConfig(!isMock).then(res => {
...
@@ -47,6 +46,7 @@ fetchConfig(!isMock).then(res => {
// 设置 js中可以访问 $cdn
// 设置 js中可以访问 $cdn
Vue
.
use
(
cfg
)
Vue
.
use
(
cfg
)
window
.
$fetchConfig
=
res
window
.
$fetchConfig
=
res
if
(
res
.
vconsole
)
new
VConsole
()
/**登录过期 重新登录 */
/**登录过期 重新登录 */
window
.
reLogin
=
()
=>
{
window
.
reLogin
=
()
=>
{
// console.log('重新登录')
// console.log('重新登录')
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment