From b00775f988e7916146dede27d38343b5659016c8 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Fri, 01 Sep 2023 09:40:02 +0800
Subject: [PATCH] 删除无用的传参
---
ruoyi-ui/src/views/system/user/profile/index.vue | 2 +-
ruoyi-ui/src/views/system/user/profile/userAvatar.vue | 7 +------
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/ruoyi-ui/src/views/system/user/profile/index.vue b/ruoyi-ui/src/views/system/user/profile/index.vue
index ad530f9..529c564 100644
--- a/ruoyi-ui/src/views/system/user/profile/index.vue
+++ b/ruoyi-ui/src/views/system/user/profile/index.vue
@@ -8,7 +8,7 @@
</div>
<div>
<div class="text-center">
- <userAvatar :user="user" />
+ <userAvatar />
</div>
<ul class="list-group list-group-striped">
<li class="list-group-item">
diff --git a/ruoyi-ui/src/views/system/user/profile/userAvatar.vue b/ruoyi-ui/src/views/system/user/profile/userAvatar.vue
index d22fee5..de69e47 100644
--- a/ruoyi-ui/src/views/system/user/profile/userAvatar.vue
+++ b/ruoyi-ui/src/views/system/user/profile/userAvatar.vue
@@ -61,11 +61,6 @@
export default {
components: { VueCropper },
- props: {
- user: {
- type: Object
- }
- },
data() {
return {
// 是否显示弹出层
@@ -140,7 +135,7 @@
formData.append("avatarfile", data);
uploadAvatar(formData).then(response => {
this.open = false;
- this.options.img = response.imgUrl;
+ this.options.img = process.env.VUE_APP_BASE_API + response.imgUrl;
store.commit('SET_AVATAR', this.options.img);
this.$modal.msgSuccess("修改成功");
this.visible = false;
--
Gitblit v1.9.3