diff --git a/README.md b/README.md index 3586747..f758b51 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,10 @@ - 访问[uniapp 插件](https://ext.dcloud.net.cn/plugin?id=8559) - 如有问题请加群【[872378674](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=T3PX4_sWeMXeFGWF6EZJLXABSNyStYR0&authKey=EYXATTrGpmyowFxk9xtX6T7FIRbOF7brLd9uODxl%2B6jIbGfWQGW869V1hkPSlGYT&noverify=0&group_code=872378674)】交流 +[//]: # (- 如有问题请加入【[im交流群](https://im.dcloud.net.cn/#/?joinGroup=665b1e707fbdb2002f12a7ee))】) + + + ### 说明 - 框架完全基于 Vue3 SFC ` diff --git a/src/pages/demo/index.vue b/src/pages/demo/index.vue index 7d0037f..780d07f 100644 --- a/src/pages/demo/index.vue +++ b/src/pages/demo/index.vue @@ -13,7 +13,7 @@ const demo = ref('Demo'); - + diff --git a/src/utils/http/index.ts b/src/utils/http/index.ts index 7ea9b1d..2ccb370 100644 --- a/src/utils/http/index.ts +++ b/src/utils/http/index.ts @@ -21,7 +21,6 @@ const ContentType = { */ const alovaInstance = createAlova({ baseURL: BASE_URL, - localCache: null, // 设置为null即可全局关闭全部请求缓存 ...AdapterUniapp({ /* #ifndef APP-PLUS */ mockRequest: isUseMock() ? mockAdapter : undefined, // APP 平台无法使用mock @@ -62,7 +61,7 @@ const alovaInstance = createAlova({ throw new Error(`请求错误[${code}]:${message}`); } // 处理http状态错误 - handleHttpStatus(statusCode, message || ''); + handleHttpStatus(statusCode, errMsg || ''); throw new Error(`HTTP请求错误[${statusCode}]:${errMsg}`); },