You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< script setup >
/**
* name:
* user: sa0ChunLuyu
* date: 2022-04-19 14:58:23
*/
import {
ref
} from 'vue'
import config from '@/config.js'
import {
delToken
} from '@/tool/member.js'
const login _ref = ref ( null )
const loginRef = ( e ) => {
login _ref . value = e
}
const quitClick = ( ) => {
delToken ( )
login _ref . value . getUserInfo ( )
}
< / script >
< template >
< Login :ref ="loginRef" > < / Login >
< view class = "home_wrapper u-text-center" >
< view class = "home_logo_wrapper" >
< u -image width = "200rpx" height = "200rpx" src = "/static/logo.png" > < / u - i m a g e >
< / view >
< view class = "home_title_wrapper" > { { config . title } } < / view >
< view class = "quit_button_wrapper" >
< u -button @click ="quitClick()" > 退 出 登 录 < / u -button >
< / view >
< / view >
< / template >
< style scoped >
. quit _button _wrapper {
margin - top : 30 rpx ;
}
. home _title _wrapper {
margin : 10 rpx 0 ;
}
. home _logo _wrapper {
width : 200 rpx ;
height : 200 rpx ;
margin : 0 auto ;
}
. home _wrapper {
position : absolute ;
top : 50 % ;
left : 50 % ;
transform : translate ( - 50 % , - 50 % ) ;
}
< / style >