开发者问题收集
以下代码运行良好,但我无法正确输入providesTags:type Post = {id: number,name: string,description: string,}const postsApiSlice = api.injectEndpoints({endpoints: (builder) => ({getPosts: builder.query<EntityState<Post>,
我在端点中设置了extraOptions,如下所示:const myApi = api.injectEndpoints({endpoints: builder => ({changePassowrd: builder.mutation({query: (data) => ({url: `${Config.BASE_URL}/users/${data.userId}`,method: 'PATCH'