摘要: 1.在src文件夹下新建 setupProxy.js文件 const proxy = require('http-proxy-middleware')//引入http-proxy-middleware,react脚手架已经安装 module.exports = function(app){ app. 阅读全文
posted @ 2022-07-03 21:29 方方面 阅读(640) 评论(0) 推荐(0)
摘要: //创建 studentApi文件 import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/dist/query/react"; //创建Api对象 需要一个对象作为参数 const studentApi = createApi({ r 阅读全文
posted @ 2022-07-03 20:39 方方面 阅读(191) 评论(0) 推荐(0)