This commit is contained in:
yangsy
2025-08-22 11:19:23 +08:00
parent 0fd9f17366
commit 80a30a3cba

View File

@@ -49,7 +49,7 @@ const { mutate: login, isPending: loading } = useMutation({
<NInput v-model:value="formData.password" type="password" show-password-on="click" placeholder="请输入密码" />
</NFormItem>
</NForm>
<NButton type="primary" block strong :loading="loading" @click="() => login(formData)"> 登录 </NButton>
<NButton type="primary" block strong :loading="loading" @click="() => login(formData)">登录</NButton>
</NFlex>
</NCard>
</div>
@@ -58,44 +58,43 @@ const { mutate: login, isPending: loading } = useMutation({
<style scoped lang="scss">
.login-page {
}
.login-card-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.login-card-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.login-card {
width: 400px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
padding: 32px;
position: relative;
}
.login-card {
width: 400px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
padding: 32px;
position: relative;
}
.theme-switch {
position: absolute;
bottom: 16px;
right: 16px;
}
.theme-switch {
position: absolute;
bottom: 16px;
right: 16px;
}
.platform-title {
font-size: 28px;
font-weight: 500;
margin-bottom: 8px;
}
.platform-title {
font-size: 28px;
font-weight: 500;
margin-bottom: 8px;
}
.login-title {
font-size: 16px;
color: #999;
margin-bottom: 24px;
}
.login-title {
font-size: 16px;
color: #999;
margin-bottom: 24px;
}
.login-form {
width: 100%;
margin-bottom: 16px;
.login-form {
width: 100%;
margin-bottom: 16px;
}
}
</style>