Commit 0d8d1d8f by 王志慧

动态控制vConsole

1 parent 6c29d6ff
...@@ -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('重新登录')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!