feat:add auth common api_host (#319)

This commit is contained in:
wang-liang0615 2023-12-19 11:23:27 +08:00 committed by GitHub
parent 3a760c3a80
commit b61c14ba07
1 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,13 @@
" "
/> />
</a-form-model-item> </a-form-model-item>
<a-form-model-item
label="API服务地址"
prop="api_host"
help="如果服务的部署没使用DNS, 如果要启用CAS、OAuth2.0、OIDC的则须填API服务地址"
>
<a-input v-model="form.api_host" placeholder="http://127.0.0.1:5000" />
</a-form-model-item>
</a-form-model> </a-form-model>
</template> </template>
@ -29,6 +36,7 @@ export default {
wrapperCol: { span: 10 }, wrapperCol: { span: 10 },
form: { form: {
auto_redirect: 0, auto_redirect: 0,
api_host: '',
}, },
rules: { rules: {
auto_redirect: [{ required: true }], auto_redirect: [{ required: true }],