| | |
| | | next({path: '/login'}) |
| | | }) |
| | | } else { |
| | | const value = to.query.src || to.fullPath; |
| | | const label = to.query.name || to.name; |
| | | let query=JSON.parse(JSON.stringify(to.query)); |
| | | for(var q in to.query) { |
| | | if (to.query[q].indexOf('@name=') != -1) { |
| | | query[q] = to.query[q].split('@name=')[0] |
| | | query['name'] = to.query[q].split('@name=')[1] |
| | | } |
| | | } |
| | | const value = query.src || to.fullPath|| to.path ; |
| | | const label = query.name || to.name; |
| | | const meta = to.meta || router.$avueRouter.meta || {}; |
| | | const i18n = to.query.i18n; |
| | | if (to.query.target) { |