mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: fix problem download
This commit is contained in:
1 parent
a5b5ae49d4
commit
1d48df3e80
5 files changed
+17
-13
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user