Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
NFT
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanfeng zhang
NFT
Commits
d7fa58f4
Commit
d7fa58f4
authored
Sep 28, 2021
by
salitedfish
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复上传同一张图片无法上传bug
parent
14ea8a40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
upload.vue
src/view/NFT/Create/upload.vue
+4
-2
No files found.
src/view/NFT/Create/upload.vue
View file @
d7fa58f4
...
...
@@ -211,7 +211,8 @@ export default Vue.extend({
}
this
.
$toast
(
item
.
name
);
}
,
handleFileChange
(
ref
:
any
)
{
async
handleFileChange
(
ref
:
any
)
{
console
.
log
(
'上传了'
)
console
.
log
(
ref
);
const
ele
=
this
.
$refs
[
ref
]
as
HTMLInputElement
;
...
...
@@ -240,7 +241,8 @@ export default Vue.extend({
if
(
files
&&
files
.
length
>=
1
)
{
this
[
this
.
uploadType
==
'封面图片'
?
'coverstatus'
:
'status'
]
=
uploadStatus
.
uploading
;
this
.
afterRead
(
files
[
0
]);
await
this
.
afterRead
(
files
[
0
]);
ele
.
value
=
''
}
}
,
...
mapMutations
(
"create"
,
{
...
...
Write
Preview
Markdown
is supported
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