| | |
| | | import { message } from 'ant-design-vue' |
| | | import { defineComponent, onMounted, ref } from 'vue' |
| | | import { getRoot } from '/@/root' |
| | | import { getPlatformInfo } from '/@/api/manage' |
| | | import { getPlatformInfo, loginOut } from '/@/api/manage' |
| | | import { ELocalStorageKey, ERouterName } from '/@/types' |
| | | import { UserOutlined, ExportOutlined } from '@ant-design/icons-vue' |
| | | import cloudapi from '/@/assets/icons/cloudapi.png' |
| | |
| | | selected.value = path |
| | | } |
| | | |
| | | const logout = () => { |
| | | const logout = async () => { |
| | | const res = await loginOut() |
| | | console.log(res, 'Res') |
| | | localStorage.clear() |
| | | root.$router.push(ERouterName.LOGIN) |
| | | } |