Replies: 1 comment
-
|
TanStack Query 的 Vue 版本 ( 方案一:尝试使用 @tanstack/vue-query(可能有兼容性问题) npm install @tanstack/vue-query// main.js
import Vue from 'vue'
import { VueQueryPlugin } from '@tanstack/vue-query'
Vue.use(VueQueryPlugin)方案二:使用 vue-query v1(专门支持 Vue 2) 如果你需要稳定的 Vue 2 支持,可以使用旧版本: npm install vue-query@1这个版本是专门为 Vue 2 设计的。 方案三:升级到 Vue 3 如果可能的话,建议升级到 Vue 3,可以获得完整的 TanStack Query 支持和更好的性能。 参考文档:
希望对你有帮助! 如果这解决了您的问题,请将其标记为答案!✅ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
是否支持 "vue": "^2.7.7",的项目,需要怎么配置呢
Beta Was this translation helpful? Give feedback.
All reactions