location ~* ^/agent {
rewrite ^(/agent)(.*)$ $2 break;
proxy_pass http://ip:端口;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
在usePullDownRefresh中加
Taro.stopPullDownRefresh()关闭下拉动画,白色部分其实是下拉动画,这一点比较坑啊
小程序获取code:
wx.login().then(res=>console.log(res))
parser: 'babel-eslint',
@typescript-eslint
babel-eslint
改为改为 @typescript-eslint/parser
Taro.hideKeyboard()
主动关闭
curl -X POST 'http://0.0.0.0:7001/graphql' -d 'query={__schema{types{name,fields{name}}}}'
服务器:
curl -XPOST 'http://127.0.0.1/graphql' -H "host:shareact.market.cloud.tencent.cn" -d 'query={__schema{types{name,fields{name}}}}'