| | |
| | | routes |
| | | }) |
| | | |
| | | // router.beforeEach((to, from, next) => { |
| | | // if (to.meta.title) document.title = to.meta.title |
| | | // }) |
| | | router.beforeEach((to, from, next) => { |
| | | if (to.meta.title) document.title = to.meta.title |
| | | next() |
| | | }) |
| | | |
| | | export default router |
| | |
| | | <div class="login"> |
| | | <Header></Header> |
| | | <loginForm></loginForm> |
| | | <Footer></Footer> |
| | | <!-- <Footer></Footer> --> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Header from "@/components/Header"; |
| | | import Footer from "@/components/Footer"; |
| | | import loginForm from "@/views/login/components/loginForm"; |
| | | import Header from "@/components/Header" |
| | | // import Footer from "@/components/Footer"; |
| | | import loginForm from "@/views/login/components/loginForm" |
| | | export default { |
| | | components: { |
| | | Header, |
| | | Footer, |
| | | loginForm, |
| | | }, |
| | | }; |
| | | // Footer, |
| | | loginForm |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | |
| | | width: 100%; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | this.pieChart.setOption(this.pieOption) |
| | | }, |
| | | jump(route) { |
| | | const userInfo = JSON.parse(sessionStorage.getItem("userInfo")) |
| | | |
| | | const val = userInfo.permissions.find((item) => { |
| | | return item == route.permission |
| | | const { href } = this.$router.resolve({ |
| | | path: route.path |
| | | }) |
| | | |
| | | // 修改为全部在新标签页打开 |
| | | if (val) { |
| | | const { href } = this.$router.resolve({ |
| | | path: route.path |
| | | }) |
| | | window.open(href, "_blank") |
| | | } else if (!userInfo.parentId) { |
| | | this.$router.push(route.openPath) |
| | | } |
| | | window.open(href, "_blank") |
| | | }, |
| | | refrash() {}, |
| | | handleSizeChange() {}, |