mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: rename gql to get template str highlight
This commit is contained in:
1 parent
95df2cfaf2
commit
836530ad56
4 files changed
+7
-7
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { NamedPage } from 'vj/misc/Page';
|
||||
import api, { e } from 'vj/utils/api';
|
||||
import api, { gql } from 'vj/utils/api';
|
||||
import loadReactRedux from 'vj/utils/loadReactRedux';
|
||||
import parseQueryString from 'vj/utils/parseQueryString';
|
||||
|
||||
@@ -80,7 +80,7 @@ const page = new NamedPage('home_messages', () => {
|
||||
async function loadSendTarget() {
|
||||
const queryString = parseQueryString();
|
||||
if (!queryString.target) return;
|
||||
const user = await api(e`
|
||||
const user = await api(gql`
|
||||
users(search: ${queryString.target}, exact: true) {
|
||||
_id
|
||||
uname
|
||||
|
||||
Reference in new issue
Block a user