@@ -8,15 +8,14 @@ Router.prototype.push = function push(location) {
}
-
router.beforeEach((to, from, next) => {
// console.log(to);
if (to.fullPath === '/' || to.name === '*') {
let {
code,
ticket
} = to.query;
+
if (code && ticket) {
next({
path: "/mainPage",
@@ -419,8 +419,6 @@ export default {
if (i.weightErr) this.weightErrIds.push(i.id);
});
- console.log(arr);
- console.log(this.weightErrIds);
this.treeData = arr;
},
delRow(row) {