im-ui-mobile 0.1.18 → 0.1.19

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.
@@ -45,7 +45,7 @@
45
45
  </template>
46
46
 
47
47
  <script setup lang="ts">
48
- import { ref, computed, watch, nextTick, useSlots } from 'vue'
48
+ import { ref, computed, watch } from 'vue'
49
49
  import ImCell from '../im-cell/im-cell.vue'
50
50
 
51
51
  // 定义 Props 接口
@@ -519,6 +519,11 @@ const startUpload = async (uploadFile: UploadFile) => {
519
519
  throw new Error('请设置上传地址或自定义上传函数')
520
520
  }
521
521
 
522
+ // 服务端失败
523
+ if (response.statusCode !== 200) {
524
+ throw new Error(response.data.error.message)
525
+ }
526
+
522
527
  // 格式化响应数据
523
528
  const formattedResponse = props.responseFormatter(response)
524
529
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "im-ui-mobile",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "A Vue3.0 + Typescript instant messaging component library for Uniapp",
5
5
  "type": "module",
6
6
  "main": "index.js",