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

修改默认登录账号

parent 0e5a04c2
<template> <template>
<SvgIcon name="home"></SvgIcon>
<h1 class="page-title">{{ title }}</h1> <h1 class="page-title">{{ title }}</h1>
</template> </template>
......
...@@ -13,19 +13,19 @@ interface FormState { ...@@ -13,19 +13,19 @@ interface FormState {
export function useLoginPage() { export function useLoginPage() {
const loading = ref(false) const loading = ref(false)
const loginFormState = reactive<FormState>({ const loginFormState = reactive<FormState>({
username: 'ceshi', username: 'test9',
password: '123', password: '0000',
remember: false remember: false
}) })
const router = useRouter()
const userStore = useUserStore() const userStore = useUserStore()
const handleLogin = async () => { const handleLogin = async () => {
loading.value = true loading.value = true
try { try {
userStore.login(loginFormState) await userStore.login(loginFormState)
} catch (e) { loading.value = false
Promise.reject(e) } 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