Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
FE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ajou-WSD-Team6
FE
Commits
d0d122a2
Commit
d0d122a2
authored
5 years ago
by
LEE JEONG EUN
Browse files
Options
Downloads
Plain Diff
Merge branch 'wfp' into 'master'
add return send See merge request
!20
parents
999e7b1f
93e5d604
Branches
Branches containing commit
No related tags found
1 merge request
!20
add return send
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/WriteFindPost.vue
+5
-5
5 additions, 5 deletions
src/views/WriteFindPost.vue
with
5 additions
and
5 deletions
src/views/WriteFindPost.vue
+
5
−
5
View file @
d0d122a2
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
<input
type=
"file"
label=
"photo input"
@
change=
"fileSeleted"
>
<input
type=
"file"
label=
"photo input"
@
change=
"fileSeleted"
>
<v-btn
color=
"green"
@
click=
"sendFile"
>
Send
</v-btn>
<v-btn
color=
"green"
@
click=
"sendFile"
>
Send
</v-btn>
</v-flex>
</v-flex>
{{
result
}}
<v-flex
xs12
text-xs-right
>
<v-flex
xs12
text-xs-right
>
<v-btn
class=
"mx-0 font-weight-light"
color=
"success"
@
click=
"onClicked"
>
작성 완료
</v-btn>
<v-btn
class=
"mx-0 font-weight-light"
color=
"success"
@
click=
"onClicked"
>
작성 완료
</v-btn>
</v-flex>
</v-flex>
...
@@ -52,7 +53,8 @@ export default {
...
@@ -52,7 +53,8 @@ export default {
menu
:
false
,
menu
:
false
,
modal
:
false
,
modal
:
false
,
menu2
:
false
,
menu2
:
false
,
image
:
null
image
:
null
,
result
:
''
}
}
},
},
methods
:
{
methods
:
{
...
@@ -71,7 +73,6 @@ export default {
...
@@ -71,7 +73,6 @@ export default {
console
.
log
(
`
${
key
}
`
);
console
.
log
(
`
${
key
}
`
);
}
}
this
.
$http
.
post
(
'
/finderboard
'
,
formData
,
config
).
then
((
response
)
=>
{
this
.
$http
.
post
(
'
/finderboard
'
,
formData
,
config
).
then
((
response
)
=>
{
alert
(
response
.
data
.
message
);
this
.
$router
.
push
(
'
/finderboard
'
)
this
.
$router
.
push
(
'
/finderboard
'
)
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
alert
(
"
Error =
"
+
err
.
message
)
alert
(
"
Error =
"
+
err
.
message
)
...
@@ -82,8 +83,6 @@ export default {
...
@@ -82,8 +83,6 @@ export default {
this
.
file
=
event
.
target
.
files
[
0
];
this
.
file
=
event
.
target
.
files
[
0
];
},
},
sendFile
:
function
(){
sendFile
:
function
(){
alert
(
"
here is send!!
"
)
var
formData
=
new
FormData
();
var
formData
=
new
FormData
();
var
config
=
{
var
config
=
{
header
:{
'
Content-Type
'
:
'
multipart/form-data
'
}
header
:{
'
Content-Type
'
:
'
multipart/form-data
'
}
...
@@ -93,7 +92,8 @@ export default {
...
@@ -93,7 +92,8 @@ export default {
console
.
log
(
`
${
key
}
`
);
console
.
log
(
`
${
key
}
`
);
}
}
this
.
$http
.
post
(
'
/finderboard/image
'
,
formData
,
config
).
then
((
respose
)
=>
{
this
.
$http
.
post
(
'
/finderboard/image
'
,
formData
,
config
).
then
((
respose
)
=>
{
alert
(
"
===
"
+
respose
.
data
.
msg
)
this
.
result
=
respose
.
data
.
result
;
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
alert
(
err
.
message
);
alert
(
err
.
message
);
})
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment