im-ui-mobile 0.0.62 → 0.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "im-ui-mobile",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "A Vue3.0 + typescript instant messaging component library for Uniapp",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -19,15 +19,18 @@ export default class Requester {
19
19
 
20
20
  // 基础请求方法
21
21
  async request(options) {
22
- this.options.url = this.baseURL + this.options.url;
23
- this.options.header = this.header
24
- this.options.timeout = this.timeout
25
22
  this.options = {
23
+ ...this.options,
26
24
  ...options
27
25
  };
28
-
26
+ this.header = {
27
+ ...options.header
28
+ };
29
29
  return new Promise((resolve, reject) => {
30
30
  uni.request({
31
+ header: this.header,
32
+ timeout: this.timeout,
33
+ url: this.baseURL + this.options.url,
31
34
  ...this.options,
32
35
  success: (res) => {
33
36
  const data = res.data;