Skip to content

Commit 44efb13

Browse files
committed
fix: login error
1 parent ba1254f commit 44efb13

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

src/views/Login/components/LoginForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
label-width="120px"
1010
size="large"
1111
>
12-
<el-row style="maring-left: -10px; maring-right: -10px">
12+
<el-row style="margin-left: -10px; margin-right: -10px">
1313
<el-col :span="24" style="padding-left: 10px; padding-right: 10px">
1414
<el-form-item>
1515
<LoginFormTitle style="width: 100%" />

src/views/Login/components/QrCodeForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<el-row v-show="getShow" style="maring-left: -10px; maring-right: -10px">
2+
<el-row v-show="getShow" style="margin-left: -10px; margin-right: -10px">
33
<el-col :span="24" style="padding-left: 10px; padding-right: 10px">
44
<LoginFormTitle style="width: 100%" />
55
</el-col>

src/views/Login/components/SSOLogin.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,14 @@ const client = ref({
5555
name: '',
5656
logo: ''
5757
})
58-
const queryParams = reactive({
58+
interface queryType {
59+
responseType: string
60+
clientId: string
61+
redirectUri: string
62+
state: string
63+
scopes: string[]
64+
}
65+
const queryParams = reactive<queryType>({
5966
// URL 上的 client_id、scope 等参数
6067
responseType: '',
6168
clientId: '',
@@ -64,7 +71,10 @@ const queryParams = reactive({
6471
scopes: [] // 优先从 query 参数获取;如果未传递,从后端获取
6572
})
6673
const ssoVisible = computed(() => unref(getLoginState) === LoginStateEnum.SSO) // 是否展示 SSO 登录的表单
67-
const formData = reactive({
74+
interface formType {
75+
scopes: string[]
76+
}
77+
const formData = reactive<formType>({
6878
scopes: [] // 已选中的 scope 数组
6979
})
7080
const formLoading = ref(false) // 表单是否提交中

0 commit comments

Comments
 (0)