diff --git a/src/views/system/user/userInfo/index.vue b/src/views/system/user/userInfo/index.vue index 30ccf8d..3da2483 100644 --- a/src/views/system/user/userInfo/index.vue +++ b/src/views/system/user/userInfo/index.vue @@ -101,12 +101,18 @@ - + 保存 + 删除 @@ -231,7 +237,7 @@ const getAvatarUrl = computed((): string => isUrl(unref(getUserInfo).avatar) ? unref(getUserInfo).avatar : apiUrl + unref(getUserInfo).avatar); - const getImageUrl = computed((): string => isUrl(state.imageUrl) ? state.imageUrl : apiUrl + state.imageUrl); + const getImageUrl = computed((): string => (!state.imageUrl || isUrl(state.imageUrl)) ? state.imageUrl : apiUrl + state.imageUrl); const getLabelStyle = computed((): CSSProperties => ({ fontSize: '14px', @@ -326,6 +332,11 @@ ::v-deep(.upload-avatar-form) > .ant-row { margin-bottom: 0px; } + + ::v-deep(.avatar-submit-form-item) button { + margin-left: 6px; + } + }