mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-14 05:10:53 +08:00
feat: oauth登录功能
This commit is contained in:
@@ -92,6 +92,19 @@ const formState = reactive({
|
||||
username: localUsername,
|
||||
});
|
||||
|
||||
/**
|
||||
* oauth登录 需要tenantId参数
|
||||
*/
|
||||
watch(
|
||||
() => formState.tenantId,
|
||||
(tenantId) => {
|
||||
localStorage.setItem('__oauth_tenant_id', tenantId);
|
||||
},
|
||||
{
|
||||
immediate: true,
|
||||
},
|
||||
);
|
||||
|
||||
/**
|
||||
* 默认选中第一项租户
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user