ui: fix problem download

This commit is contained in:
undefined committed 2021-10-13 16:31:06 +08:00
1 parent a5b5ae49d4
commit 1d48df3e80
5 files changed
+17 -13

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import request from './request';
export default async (q: string, path: string[] = []) => {
let query = q.trim();
if (!query.startsWith('query')) query = `query{${query}}`;
const res = await request.post('/api', { query });
const res = await request.post(`/d/${UiContext.domainId}/api`, { query });
if (res.errors) throw new Error(res.errors[0].message);
let cursor = res;
for (const p of path) {