diff --git a/src/common/globalRouter.js b/src/common/globalRouter.js index df4220f..2eb98a1 100644 --- a/src/common/globalRouter.js +++ b/src/common/globalRouter.js @@ -30,7 +30,10 @@ $globalRouter.beforeEach((to, from, next) => { if (typeof to.query[key] === 'number' && !Number.isNaN(to.query[key])) { if (to.query[key].toString().length > 9) { to.query[key] = 0; - console.log(to.query[key]); + } + } else { + if (to.query[key].toString().length > 33) { + to.query[key] = 0; } } } @@ -41,7 +44,10 @@ $globalRouter.beforeEach((to, from, next) => { if (typeof to.params[key] === 'number' && !Number.isNaN(to.params[key])) { if (to.params[key].toString().length > 9) { to.params[key] = 0; - console.log(to.params[key]); + } + } else { + if (to.params[key].toString().length > 33) { + to.params[key] = 0; } } }