Add share manage dialog
This commit is contained in:
@@ -112,7 +112,10 @@ const addUserDomainFinished = async (val: string) => {
|
||||
const selected = addDomainRef.value.selected;
|
||||
if (val == 'OK' && selected.length > 0) {
|
||||
addUserDomainLoading.value = true;
|
||||
const { data } = await api.post(`api/domain/${authStore.userId}?domainid=${selected[0].id}`)
|
||||
const { data } = await api.post(`api/userdomain`, {
|
||||
userid: authStore.userId,
|
||||
domainid: selected[0].id,
|
||||
});
|
||||
if (rows.value.length === 0 && data.data) {
|
||||
const domain = data.data;
|
||||
await authStore.setCurrentDomain({
|
||||
|
||||
Reference in New Issue
Block a user