我刚接触过vue,但我不明白为什么没有人能回答这个问题。我本以为这很简单,但我找不到任何地方谈论它。我有一个getCategory方法,它使用阿波罗查询我们的graphQL API。逻辑如下所示: import * as getCategoryBySlugquery.category.gql";
export function useG
我正在尝试使用Vue + Apollo (后端的Postgraphile服务器)设置一个非常简单的查询。export default { data() { currentUser: undefined, },[Vue warn]: Error in created hook: "TypeError:
this
我目前正在尝试从useQuery中模拟index.ts,但是我不能这样做,因为useMenu是一个只读值。index.tsimport { MENU } from "../..} from '@apollo/react-hooks';
import {httpResponse as mockMenuAPIString} from '..&