| | |
| | | import ExitFullscreen from "~icons/ri/fullscreen-exit-fill"; |
| | | import Fullscreen from "~icons/ri/fullscreen-fill"; |
| | | import { unref } from "vue"; |
| | | import { message } from "@/utils/message"; |
| | | |
| | | const errorInfo = |
| | | "The current routing configuration is incorrect, please check the configuration"; |
| | |
| | | .then(res => { |
| | | if (res.code == 200) { |
| | | // 获取后端路由 |
| | | initRouter(); |
| | | onFresh(); |
| | | initRouter().then(() => { |
| | | const path = getTopMenu(true); |
| | | router.push({ name: path.name }); |
| | | }); |
| | | // onFresh(); |
| | | } else { |
| | | message(res?.message, { type: "warning" }); |
| | | } |
| | | }); |
| | | }; |