From 0f039225ab84a25f11598120730e68f21b812a47 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 4 May 2023 10:35:08 +0800 Subject: [PATCH] fix: user avatar link does not support relative paths (#3880) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind bug /area console /milestone 2.6.x #### What this PR does / why we need it: 修复用户头像不支持相对链接的问题。 #### Which issue(s) this PR fixes: Fixes #3879 #### Special notes for your reviewer: 测试方式: 1. 创建或者编辑用户资料。 2. 从附件库选择头像,检查是否可以通过表单验证。 #### Does this PR introduce a user-facing change? ```release-note 修复创建用户或者修改用户资料时,头像链接不支持相对链接的问题。 ``` --- .../src/modules/system/users/components/UserCreationModal.vue | 2 +- .../src/modules/system/users/components/UserEditingModal.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/console/src/modules/system/users/components/UserCreationModal.vue b/console/src/modules/system/users/components/UserCreationModal.vue index fb99da606..42ba92a1d 100644 --- a/console/src/modules/system/users/components/UserCreationModal.vue +++ b/console/src/modules/system/users/components/UserCreationModal.vue @@ -154,7 +154,7 @@ const handleCreateUser = async () => { :label="$t('core.user.editing_modal.fields.avatar.label')" type="attachment" name="avatar" - validation="url|length:0,1024" + validation="length:0,1024" > { type="attachment" name="avatar" :accepts="['image/*']" - validation="url|length:0,1024" + validation="length:0,1024" >