File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed
src/views/Login/components Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 9
9
label-width =" 120px"
10
10
size =" large"
11
11
>
12
- <el-row style =" maring -left : -10px ; maring -right : -10px " >
12
+ <el-row style =" margin -left : -10px ; margin -right : -10px " >
13
13
<el-col :span =" 24" style =" padding-left : 10px ; padding-right : 10px " >
14
14
<el-form-item >
15
15
<LoginFormTitle style =" width : 100% " />
Original file line number Diff line number Diff line change 1
1
<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 " >
3
3
<el-col :span =" 24" style =" padding-left : 10px ; padding-right : 10px " >
4
4
<LoginFormTitle style =" width : 100% " />
5
5
</el-col >
Original file line number Diff line number Diff line change @@ -55,7 +55,14 @@ const client = ref({
55
55
name: ' ' ,
56
56
logo: ' '
57
57
})
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 >({
59
66
// URL 上的 client_id、scope 等参数
60
67
responseType: ' ' ,
61
68
clientId: ' ' ,
@@ -64,7 +71,10 @@ const queryParams = reactive({
64
71
scopes: [] // 优先从 query 参数获取;如果未传递,从后端获取
65
72
})
66
73
const ssoVisible = computed (() => unref (getLoginState ) === LoginStateEnum .SSO ) // 是否展示 SSO 登录的表单
67
- const formData = reactive ({
74
+ interface formType {
75
+ scopes: string []
76
+ }
77
+ const formData = reactive <formType >({
68
78
scopes: [] // 已选中的 scope 数组
69
79
})
70
80
const formLoading = ref (false ) // 表单是否提交中
You can’t perform that action at this time.
0 commit comments