uni-oaview 1.0.6 → 1.0.7

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.
@@ -58,7 +58,7 @@
58
58
  url: `${baseUrl}/api/auth/verification/get?t=${Date.now()}`,
59
59
  method: 'POST',
60
60
  success: (res: any) => {
61
- const { pid, image } = res.data.data;
61
+ const { pid, image } = res?.data?.data || {};
62
62
  imageSrc.value = image;
63
63
  ppid.value = pid;
64
64
  },
@@ -82,7 +82,7 @@
82
82
  },
83
83
  },
84
84
  success: (res: any) => {
85
- const { uuid: id, email, ...otherParams } = res.data.data;
85
+ const { uuid: id, email, ...otherParams } = res?.data?.data;
86
86
  const userInfo = {
87
87
  id,
88
88
  email,
@@ -1,10 +1,11 @@
1
1
  <template>
2
2
  <image v-if="isShow" :src="imgSrc" class="img-box" @error="handleImgError" />
3
- <image v-else src="@/static/icon/userinro.svg" class="img-box" />
3
+ <image v-else :src="imgs" class="img-box" />
4
4
  </template>
5
5
 
6
6
  <script lang="ts" setup>
7
7
  import { computed, ref } from 'vue';
8
+ import imgs from '../../imgs/user-default.svg';
8
9
 
9
10
  const props = defineProps({
10
11
  username: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uni-oaview",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "uniapp小程序组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "typings": "dist/index.d.ts",