Chat settings in Super Admin and changing the chat title and position.
This commit is contained in:
@@ -13,7 +13,7 @@ const props = defineProps<{
|
||||
|
||||
const emit = defineEmits<{
|
||||
start: [];
|
||||
done: [ImportContactsResult];
|
||||
done: [ImportContactsResult | Record<string, unknown>];
|
||||
fail: [string];
|
||||
settled: [];
|
||||
}>();
|
||||
@@ -64,9 +64,13 @@ async function postImport(file: File, map?: Record<string, string>) {
|
||||
if (map && Object.values(map).some(Boolean)) {
|
||||
form.append('mapping', JSON.stringify(map));
|
||||
}
|
||||
const { data } = await api.post<ImportContactsResult>(props.importPath, form, {
|
||||
headers: { 'Content-Type': undefined },
|
||||
});
|
||||
const { data } = await api.post<ImportContactsResult | Record<string, unknown>>(
|
||||
props.importPath,
|
||||
form,
|
||||
{
|
||||
headers: { 'Content-Type': undefined },
|
||||
},
|
||||
);
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user