Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
K
kiaisoft_tuananh_nuxt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TTS Tran Viet Anh
kiaisoft_tuananh_nuxt
Commits
4fb6a513
Commit
4fb6a513
authored
Feb 11, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preview img
parent
39666ecf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
home.vue
pages/home.vue
+1
-1
index.vue
pages/posts/index.vue
+15
-2
No files found.
pages/home.vue
View file @
4fb6a513
...
...
@@ -79,6 +79,6 @@
<
script
>
export
default
{
layout
:
'
admin
'
,
middleware
:
[
'
web
'
]
,
middleware
:
[
'
web
'
]
}
</
script
>
pages/posts/index.vue
View file @
4fb6a513
...
...
@@ -290,6 +290,15 @@
@
change=
"fileSelected"
/>
</v-col>
<v-col
cols=
"12"
>
<img
v-if=
"file"
contain
max-height=
"300"
max-width=
"500"
:src=
"file"
>
</v-col>
</v-row>
</v-container>
<small>
*indicates required field
</small>
...
...
@@ -682,8 +691,12 @@ export default {
})
},
fileSelected (event) {
console.log(event)
console.log(this.images)
if (event) {
this.file = URL.createObjectURL(event)
console.log(this.file)
} else {
this.file = null
}
}
}
}
...
...
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