|
|
@@ -256,7 +256,16 @@ export const SideBar = (props: { className?: string }) => {
|
|
|
label: (
|
|
|
<a onClick={async () => {
|
|
|
try {
|
|
|
- const blob = await api.post(`/bigmodel/api/dialog/export/${child.key}`, {}, { responseType: 'blob' });
|
|
|
+ let blob = null;
|
|
|
+ if (getType() === 'bigModel') {
|
|
|
+ if (chatMode === 'LOCAL') {
|
|
|
+ blob = await api.post(`/bigmodel/api/dialog/export/${child.key}`, {}, { responseType: 'blob' });
|
|
|
+ } else {
|
|
|
+ blob = await api.post(`/takai/api/dialog/export/${child.key}`, {}, { responseType: 'blob' });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ blob = await api.post(`/bigmodel/api/dialog/export/${child.key}`, {}, { responseType: 'blob' });
|
|
|
+ }
|
|
|
const fileName = `${child.label}.xlsx`;
|
|
|
downloadFile(blob, fileName);
|
|
|
} catch (error) {
|