用Trae写代码真上头,AI补全居然懂我的变量命名习惯,连接口返回类型都猜得到…这波操作太丝滑了
const fetchData = async () => {
const res = await api.get('/user')
setUserInfo(res.data)
}
登录/注册