| | |
| | | import { useRouter, useRoute } from 'vue-router'; |
| | | import { Message } from '@element-plus/icons-vue'; |
| | | import { ElMessage } from 'element-plus'; |
| | | import { ELocalStorageKey } from '@/utils/http/enums'; |
| | | |
| | | const router = useRouter(); |
| | | const route = useRoute(); |
| | |
| | | ]); |
| | | |
| | | const handleClick = ({ path, name }) => { |
| | | if (['系统运维'].includes(name)) { |
| | | window.open(import.meta.env.VITE_APP_ADMIN_URL + '?token=' + localStorage.getItem(ELocalStorageKey.Token), '_blank'); |
| | | return; |
| | | } |
| | | if (!['首页', '任务管理'].includes(name)) return ElMessage.warning('正在加急开发中...'); |
| | | // 更新 leftList 的 active 状态 |
| | | leftList.value.forEach(item => { |
| | |
| | | text-align: center; |
| | | font-style: normal; |
| | | text-transform: none; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | } |