diff --git a/packages/fes-plugin-request/package.json b/packages/fes-plugin-request/package.json index abbedecd..245ae127 100644 --- a/packages/fes-plugin-request/package.json +++ b/packages/fes-plugin-request/package.json @@ -1,6 +1,6 @@ { "name": "@fesjs/plugin-request", - "version": "4.0.0-rc.5", + "version": "4.0.0-rc.6", "description": "@fesjs/plugin-request", "author": "qlin", "license": "MIT", @@ -33,7 +33,7 @@ }, "dependencies": { "@fesjs/utils": "^3.0.3", - "@qlin/request": "^0.2.3" + "@qlin/request": "^0.3.0" }, "typings": "./types.d.ts" } diff --git a/packages/fes-plugin-request/src/template/request.js b/packages/fes-plugin-request/src/template/request.js index 47a044d8..88cebb4f 100644 --- a/packages/fes-plugin-request/src/template/request.js +++ b/packages/fes-plugin-request/src/template/request.js @@ -1,8 +1,8 @@ import { ApplyPluginsType, plugin } from '@fesjs/fes'; -import { ref, shallowRef } from 'vue'; - import { createRequest } from '@qlin/request'; +import { ref, shallowRef } from 'vue'; + function getRequestInstance() { const defaultConfig = plugin.applyPlugins({ key: 'request', diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eabda237..68709e92 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -650,8 +650,8 @@ importers: specifier: ^3.0.3 version: link:../fes-utils '@qlin/request': - specifier: ^0.2.3 - version: 0.2.3 + specifier: ^0.3.0 + version: 0.3.0 vue: specifier: ^3.2.37 version: 3.3.4 @@ -4777,10 +4777,9 @@ packages: resolution: {integrity: sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ==} dev: false - /@qlin/request@0.2.3: - resolution: {integrity: sha512-haKCRgZZWF9cZF7btRNfZQlDtJQ0uVqjwp51mqT+073V7JbL2DpUmVsRODtb3nnw9uVAHOqS9rmq+ZigwftgGg==} + /@qlin/request@0.3.0: + resolution: {integrity: sha512-/1bvNA1BPjxXrFONbBvq+e/+uJKgvKjZs9YhQ97NABAXGNOaqMXsRS6MEfDIRZok4lbkHRquCXON2Lht3CkD6A==} dependencies: - '@types/lodash-es': 4.17.12 lodash-es: 4.17.21 dev: false