Commit a9c2a054 authored by 何远江's avatar 何远江

修改默认登录账号

parent 0e5a04c2
<template>
<SvgIcon name="home"></SvgIcon>
<h1 class="page-title">{{ title }}</h1>
</template>
......
......@@ -13,19 +13,19 @@ interface FormState {
export function useLoginPage() {
const loading = ref(false)
const loginFormState = reactive<FormState>({
username: 'ceshi',
password: '123',
username: 'test9',
password: '0000',
remember: false
})
const router = useRouter()
const userStore = useUserStore()
const handleLogin = async () => {
loading.value = true
try {
userStore.login(loginFormState)
} catch (e) {
Promise.reject(e)
await userStore.login(loginFormState)
loading.value = false
} catch {
loading.value = false
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment