| | |
| | | // 如果没有找到匹配的path,返回null |
| | | return null; |
| | | }, |
| | | handleSelect(key, keyPath) { |
| | | handleSelect(key, keyPath,index,routeResult) { |
| | | var MENU = this.$TOOL.data.get("MENU"); |
| | | var foundRoute = this.findRouteByPath(MENU, key); |
| | | //http://116.63.148.72:8080/xxl-job-admin |
| | | var TOKEN = this.$TOOL.cookie.get("TOKEN"); |
| | | if(key == '/i/任务调度') { |
| | | window.open("http://116.63.148.72:8080/xxl-job-admin"); |
| | | if(key == "/myiframe/urlPath") { //任务调度 |
| | | this.$router.push({path: '/myiframe/urlPath',query:{name: foundRoute.name,src:foundRoute.origin}}); |
| | | return; |
| | | } |
| | | if(foundRoute.name != "数字看板") { |
| | | if(foundRoute.isOpen != "2") { |
| | | this.$router.push({path: key}); |
| | | }else { |
| | | window.open(key + `?token=${TOKEN}`,'_blank'); |