refactor: 修改OAuth2
This commit is contained in:
parent
1a0c7a3144
commit
70fcb9ca66
@ -78,7 +78,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref, watch, onMounted } from 'vue'
|
import { reactive, ref, onMounted } from 'vue'
|
||||||
import authApi from '@/api/auth-setting'
|
import authApi from '@/api/auth-setting'
|
||||||
import type { FormInstance, FormRules } from 'element-plus'
|
import type { FormInstance, FormRules } from 'element-plus'
|
||||||
import { t } from '@/locales'
|
import { t } from '@/locales'
|
||||||
|
|||||||
@ -11,15 +11,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import LDAP from './component/LDAP.vue'
|
import LDAP from './component/LDAP.vue'
|
||||||
import CAS from './component/CAS.vue'
|
import CAS from './component/CAS.vue'
|
||||||
import OIDC from './component/OIDC.vue'
|
import OIDC from './component/OIDC.vue'
|
||||||
import SCAN from './component/SCAN.vue'
|
import SCAN from './component/SCAN.vue'
|
||||||
|
import OAuth2 from './component/OAuth2.vue'
|
||||||
import { t } from '@/locales'
|
import { t } from '@/locales'
|
||||||
import useStore from '@/stores'
|
import useStore from '@/stores'
|
||||||
import OAUTH2 from '@/views/authentication/component/OAUTH2.vue'
|
|
||||||
|
|
||||||
const { user } = useStore()
|
const { user } = useStore()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@ -43,8 +43,8 @@ const tabList = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t('login.oauth2.title'),
|
label: t('login.oauth2.title'),
|
||||||
name: 'OAUTH2',
|
name: 'OAuth2',
|
||||||
component: OAUTH2
|
component: OAuth2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '扫码登录',
|
label: '扫码登录',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user