| | |
| | | import { useRouter, useRoute } from 'vue-router' |
| | | import { Search } from '@element-plus/icons-vue' |
| | | import { getTime } from '@/utils/getTime.js' |
| | | import { useRouterStore } from 'store/router' |
| | | const store = useRouterStore() |
| | | let router = useRouter() |
| | | let currentUrl = ref('statistics') |
| | | |
| | |
| | | |
| | | if (params.path) { |
| | | if (router.currentRoute.value.path == params.path) return |
| | | |
| | | if (params.path == '/layout/supplies' || params.path == '/layout/rt') { |
| | | store.setLoadSingle(true) |
| | | } else { |
| | | store.setLoadSingle(false) |
| | | } |
| | | router.push(params.path) |
| | | } else { |
| | | params.childrenFlag = !params.childrenFlag |