Fix api call and delete tenantid on domain page

This commit is contained in:
xue jiahao
2024-12-02 12:52:59 +08:00
parent ff46485498
commit e3d842de15
4 changed files with 26 additions and 23 deletions

View File

@@ -142,7 +142,6 @@ const columns = [
{ name: 'url', align: 'center', label: 'Domain', field: 'url', sortable: true },
{ name: 'kintoneuser', label: 'User', field: 'kintoneuser', sortable: true },
{ name: 'kintonepwd' },
{ name: 'active', field: 'active' }
];
const userDomainTableFilter = ref();
@@ -250,7 +249,7 @@ const getDomain = async (userId? : string) => {
// TODO
return;
}
const resp = await api.get(`api/activedomain`);
const resp = await api.get(`api/defaultdomain`);
activeDomainId.value = resp?.data?.data?.id;
const domainResult = userId ? await api.get(`api/domain?userId=${userId}`) : await api.get(`api/domain`);
const domains = domainResult.data as any[];