diff --git a/build/vitePlugins.ts b/build/vitePlugins.ts index f614f3e..b3b8877 100644 --- a/build/vitePlugins.ts +++ b/build/vitePlugins.ts @@ -35,7 +35,7 @@ export function createVitePlugins({ isProd }: VitePluginConfig): PluginOption[] 'uni-mini-router': ['useRouter', 'useRoute'], }, { - alova: ['useRequest'], + 'alova/client': ['useRequest'], }, ], dts: 'typings/auto-imports.d.ts', diff --git a/package.json b/package.json index 986f20d..20a148b 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ "postinstall": "weapp-tw patch" }, "dependencies": { - "@alova/adapter-uniapp": "^1.2.2", - "@alova/mock": "^1.5.2", + "@alova/adapter-uniapp": "^2.0.4", + "@alova/mock": "^2.0.4", "@dcloudio/uni-app": "3.0.0-alpha-4020520240808001", "@dcloudio/uni-app-plus": "3.0.0-alpha-4020520240808001", "@dcloudio/uni-components": "3.0.0-alpha-4020520240808001", @@ -52,7 +52,7 @@ "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4020520240808001", "@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4020520240808001", "@multiavatar/multiavatar": "^1.0.7", - "alova": "^2.21.4", + "alova": "^3.0.9", "crypto-js": "^4.2.0", "lodash-es": "^4.17.21", "pinia": "^2.2.2", diff --git a/src/pages/about/index.vue b/src/pages/about/index.vue index dedd434..1472bf1 100644 --- a/src/pages/about/index.vue +++ b/src/pages/about/index.vue @@ -19,7 +19,7 @@ function handleLoginOut() {