亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

How to access VUE instance in vue-router?
淡淡煙草味
淡淡煙草味 2017-05-19 10:24:34
0
1
1268

As shown in the picture, vue-router is used in the project and placed under the path in the picture

/router/index.js introduces Vue and vue-router

import Vue from 'vue'
import Router from 'vue-router'

There is a Vue.prototype.debug = true defined in main.js

Now I want to know how to access the Vue.prototype.debug object in /router/index.js?

淡淡煙草味
淡淡煙草味

reply all(1)
黃舟

I don’t know how to deal with your problem.
My way to save the country is: define a config.js, declare it in itexport const APP_DEBUG_MODE = true, and then introduce this config to determine the value of APP_DEBUG_MODE where you need to judge Vue.debug

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template