|
@@ -31,8 +31,6 @@ import { siteInfo } from '../../../layout/site'
|
|
|
import store from '@/stores/counter'
|
|
|
import type { Ref } from 'vue'
|
|
|
import { ref } from 'vue'
|
|
|
-import { useRouter } from 'vue-router'
|
|
|
-const router = useRouter()
|
|
|
let collapse: Ref<any> = ref(false)
|
|
|
let user: Ref<any> = ref(store.state.user)
|
|
|
// 网站平台
|
|
@@ -46,7 +44,7 @@ const toWeb = () => {
|
|
|
// 退出登录
|
|
|
const logout = () => {
|
|
|
localStorage.removeItem('token')
|
|
|
- router.push('/login')
|
|
|
+ window.location.href = `${import.meta.env.VITE_APP_HOST}`
|
|
|
}
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|