-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(social-client): 三方应用页面列表、表单增加字段 #160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yuchao-su
wants to merge
2
commits into
yudaocode:master
Choose a base branch
from
yuchao-su:justauth-migrate-and-db-config
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+42
−8
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,9 +41,25 @@ | |
placeholder="请输入客户端密钥,对应各平台的appSecret" | ||
/> | ||
</el-form-item> | ||
<el-form-item label="回调地址" prop="redirectUri"> | ||
<el-input v-model="formData.redirectUri" placeholder="请输入登录成功后的回调地址" /> | ||
</el-form-item> | ||
<el-form-item label="agentId" prop="agentId" v-if="formData!.socialType === 30"> | ||
<el-input v-model="formData.agentId" placeholder="授权方的网页应用 ID,有则填" /> | ||
</el-form-item> | ||
<el-form-item label="忽略校验uri" prop="ignoreCheckRedirectUri"> | ||
<el-radio-group v-model="formData.ignoreCheckRedirectUri"> | ||
<el-radio :label="true">是</el-radio> | ||
<el-radio :label="false">否</el-radio> | ||
</el-radio-group> | ||
</el-form-item> | ||
<el-form-item label="忽略校验state" prop="ignoreCheckState"> | ||
<el-radio-group v-model="formData.ignoreCheckState"> | ||
<el-radio :label="true">是</el-radio> | ||
<el-radio :label="false">否</el-radio> | ||
</el-radio-group> | ||
</el-form-item> | ||
|
||
<el-form-item label="状态" prop="status"> | ||
<el-radio-group v-model="formData.status"> | ||
<el-radio | ||
|
@@ -81,6 +97,9 @@ const formData = ref({ | |
clientId: undefined, | ||
clientSecret: undefined, | ||
agentId: undefined, | ||
redirectUri: undefined, | ||
ignoreCheckRedirectUri: undefined, | ||
ignoreCheckState: undefined, | ||
status: 0 | ||
}) | ||
const formRules = reactive({ | ||
|
@@ -89,6 +108,8 @@ const formRules = reactive({ | |
userType: [{ required: true, message: '用户类型不能为空', trigger: 'blur' }], | ||
clientId: [{ required: true, message: '客户端编号不能为空', trigger: 'blur' }], | ||
clientSecret: [{ required: true, message: '客户端密钥不能为空', trigger: 'blur' }], | ||
ignoreCheckRedirectUri: [{ required: true, message: '忽略校验uri不能为空', trigger: 'blur' }], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. uri 中英文之间,有个空格好点。 |
||
ignoreCheckState: [{ required: true, message: '忽略校验state不能为空', trigger: 'blur' }], | ||
status: [{ required: true, message: '状态不能为空', trigger: 'blur' }] | ||
}) | ||
const formRef = ref() // 表单 Ref | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用字段