Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
c4912573
Commit
c4912573
authored
Feb 12, 2022
by
sam
Browse files
修复自定义组件`file-upload`无法显示第一个文件,列表显示的文件比实际文件少一个的问题
parent
50236ae4
Changes
1
Show whitespace changes
Inline
Side-by-side
ruoyi-ui/src/components/FileUpload/index.vue
View file @
c4912573
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<!-- 文件列表 -->
<!-- 文件列表 -->
<transition-group
class=
"upload-file-list el-upload-list el-upload-list--text"
name=
"el-fade-in-linear"
tag=
"ul"
>
<transition-group
class=
"upload-file-list el-upload-list el-upload-list--text"
name=
"el-fade-in-linear"
tag=
"ul"
>
<li
:key=
"file.u
id
"
class=
"el-upload-list__item ele-upload-list__item-content"
v-for=
"(file, index) in fileList"
>
<li
:key=
"file.u
rl
"
class=
"el-upload-list__item ele-upload-list__item-content"
v-for=
"(file, index) in fileList"
>
<el-link
:href=
"`${baseUrl}${file.url}`"
:underline=
"false"
target=
"_blank"
>
<el-link
:href=
"`${baseUrl}${file.url}`"
:underline=
"false"
target=
"_blank"
>
<span
class=
"el-icon-document"
>
{{ getFileName(file.name) }}
</span>
<span
class=
"el-icon-document"
>
{{ getFileName(file.name) }}
</span>
</el-link>
</el-link>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment