feat: oauth登录功能

This commit is contained in:
dap
2024-09-04 09:19:02 +08:00
parent 70fe375e25
commit fb525669b5
10 changed files with 398 additions and 51 deletions

View File

@@ -92,6 +92,19 @@ const formState = reactive({
username: localUsername,
});
/**
* oauth登录 需要tenantId参数
*/
watch(
() => formState.tenantId,
(tenantId) => {
localStorage.setItem('__oauth_tenant_id', tenantId);
},
{
immediate: true,
},
);
/**
* 默认选中第一项租户
*/