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