wgl 4 年之前
父节点
当前提交
96add93e12
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      src/projects/home/main.js

+ 9 - 0
src/projects/home/main.js

@@ -18,6 +18,15 @@ if (location.hostname === 'localhost') {
 	Vue.prototype.HTTPLOCAT = http + ''
 }
 
+router.beforeEach((to, from, next) => {
+	if (to.query.test) {
+		if (to.query.test == 'test') {
+			let vConsole = new Vconsole()
+		}
+	}
+	next();
+})
+
 Vue.config.productionTip = false
 new Vue({
 	router,