show domain page for all user

1. show ドメイン管理
2. hide ドメイン適用
This commit is contained in:
xue jiahao
2024-11-06 21:56:14 +08:00
parent f5b5607297
commit 43ad0f5dd8
4 changed files with 24 additions and 70 deletions

View File

@@ -60,11 +60,11 @@ export const useAuthStore = defineStore('auth', {
}
},
async getCurrentDomain(): Promise<IDomainInfo> {
const activedomain = await api.get(`api/activedomain`);
const activedomain = (await api.get(`api/activedomain`))?.data;
return {
id: activedomain.data.id,
domainName: activedomain.data.name,
kintoneUrl: activedomain.data.url,
id: activedomain?.id,
domainName: activedomain?.name,
kintoneUrl: activedomain?.url,
};
},
async getUserDomains(): Promise<IDomainInfo[]> {