| | |
| | | } |
| | | |
| | | // isRequestRoutes 为 true,则开启后端控制路由,路径:`/src/stores/themeConfig.ts` |
| | | if (!isRequestRoutes) initFrontEndControlRoutes(); |
| | | // if (!isRequestRoutes) initFrontEndControlRoutes(); |
| | | |
| | | // 路由加载前 |
| | | router.beforeEach(async (to, from, next) => { |
| | |
| | | Session.clear(); |
| | | NProgress.done(); |
| | | } else if (token && to.path === '/login') { |
| | | next('/home'); |
| | | next('/homeMenu'); |
| | | NProgress.done(); |
| | | } else { |
| | | const storesRoutesList = useRoutesList(pinia); |
对比新文件 |
| | |
| | | <template> |
| | | <router-view></router-view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "index" |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| | | |
文件名从 src/views/goalManagement/tragetDecompositionMonth/index.vue 修改 |
| | |
| | | export default defineComponent({ |
| | | components: { ElButton, ElInput,search,Dailog}, |
| | | setup() { |
| | | |
| | | |
| | | |
| | | |
| | | // 下方导航与表格 |
| | | const activeName = ref("1"); |
| | | const handleClick = (tab: TabsPaneContext, event: Event) => { |
| | |
| | | display: flex; |
| | | justify-content: right; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | export default defineComponent({ |
| | | components: { ElButton, ElInput,search,Dailog}, |
| | | setup() { |
| | | |
| | | |
| | | |
| | | |
| | | // 下方导航与表格 |
| | | const activeName = ref("1"); |
| | | const handleClick = (tab: TabsPaneContext, event: Event) => { |
| | |
| | | display: flex; |
| | | justify-content: right; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | export default defineComponent({ |
| | | components: { ElButton, ElInput,dailogAdd,upData,search}, |
| | | setup() { |
| | | |
| | | |
| | | |
| | | |
| | | // 下方导航与表格 |
| | | const activeName = ref("1"); |
| | | const handleClick = (tab: TabsPaneContext, event: Event) => { |
| | |
| | | display: flex; |
| | | justify-content: right; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | }); |
| | | }; |
| | | const linkToFirstMenu: any = (value: any) => { |
| | | debugger |
| | | let returnMenu = value; |
| | | if (returnMenu.children?.length > 0) { |
| | | return linkToFirstMenu(returnMenu.children[0]); |