Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7b94057e
authored
Jul 11, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload
parent
c8f74e10
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/views/tempaltes/editMore.vue
+10
-3
No files found.
src/views/tempaltes/editMore.vue
View file @
7b94057e
...
@@ -166,7 +166,8 @@ import {
...
@@ -166,7 +166,8 @@ import {
getTempalteDetail
,
getTempalteDetail
,
getFilmDetail
,
getFilmDetail
,
updateFilmInfo
,
updateFilmInfo
,
createFilm
createFilm
,
upload
}
from
"@/api/api"
;
}
from
"@/api/api"
;
import
axios
from
"axios"
;
import
axios
from
"axios"
;
import
{
setTimeout
}
from
"timers"
;
import
{
setTimeout
}
from
"timers"
;
...
@@ -449,9 +450,15 @@ export default {
...
@@ -449,9 +450,15 @@ export default {
},
1000
);
},
1000
);
},
},
uploadAfter
(
file
)
{
uploadAfter
(
file
)
{
console
.
log
(
file
);
// console.log(file, upload);
this
.
editObj
.
value
=
file
.
content
;
upload
(
file
.
file
).
then
(
res
=>
{
console
.
log
(
res
.
data
);
this
.
editObj
.
value
=
res
.
data
.
data
;
this
.
valueChange
();
this
.
valueChange
();
}).
catch
(
e
=>
{
console
.
log
(
e
)
this
.
$toast
(
'上传失败'
)
})
},
},
preview
()
{
preview
()
{
this
.
message
({
this
.
message
({
...
...
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