Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dd075fff
authored
Nov 09, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
文件上传覆盖问题
1 parent
c8663000
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
15 deletions
src/components/GLEditor/index.vue
src/components/GLEditor/index.vue
View file @
dd075ff
...
@@ -376,6 +376,7 @@ export default {
...
@@ -376,6 +376,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
uploadInfo
:
null
,
textNum
:
0
,
textNum
:
0
,
maxNum
:
1000
,
maxNum
:
1000
,
myArr
:
[{
name
:
888
},
{
name
:
888
}],
myArr
:
[{
name
:
888
},
{
name
:
888
}],
...
@@ -395,21 +396,6 @@ export default {
...
@@ -395,21 +396,6 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
const
that
=
this
this
.
uploadInfo
=
new
upload
({
showprocess
:
true
,
success
:
function
(
res
)
{
that
.
$notify
({
title
:
'提示'
,
message
:
'视频上传成功'
,
type
:
'success'
,
})
that
.
previewList
.
push
({
materialType
:
that
.
ATT_TYPE
.
VEDIO
,
materialContent
:
res
,
})
},
})
console
.
log
(
this
.
linkStatus
,
999
)
console
.
log
(
this
.
linkStatus
,
999
)
if
(
this
.
previewList
.
length
)
{
if
(
this
.
previewList
.
length
)
{
console
.
log
(
this
.
previewList
,
999
)
console
.
log
(
this
.
previewList
,
999
)
...
@@ -633,6 +619,24 @@ export default {
...
@@ -633,6 +619,24 @@ export default {
},
},
// 上传视频
// 上传视频
async
handleVideoChange
(
e
)
{
async
handleVideoChange
(
e
)
{
await
this
.
uploadFileVideo
(
e
)
const
that
=
this
if
(
!
this
.
uploadInfo
)
{
this
.
uploadInfo
=
new
upload
({
showprocess
:
true
,
success
:
function
(
res
)
{
that
.
$notify
({
title
:
'提示'
,
message
:
'视频上传成功'
,
type
:
'success'
,
})
that
.
previewList
.
push
({
materialType
:
that
.
ATT_TYPE
.
VEDIO
,
materialContent
:
res
,
})
},
})
}
this
.
$notify
({
this
.
$notify
({
title
:
'提示'
,
title
:
'提示'
,
message
:
'视频上传中,请稍后'
,
message
:
'视频上传中,请稍后'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment