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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ajou-WSD-Team6
FE
Commits
3010e2f2
Commit
3010e2f2
authored
5 years ago
by
최지원
Browse files
Options
Downloads
Patches
Plain Diff
Add snackbar when logout
parent
4e0856a5
No related branches found
No related tags found
1 merge request
!9
Add snackbar when logout
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/core/Drawer.vue
+18
-16
18 additions, 16 deletions
src/components/core/Drawer.vue
with
18 additions
and
16 deletions
src/components/core/Drawer.vue
+
18
−
16
View file @
3010e2f2
...
@@ -2,6 +2,15 @@
...
@@ -2,6 +2,15 @@
<v-navigation-drawer
id=
"app-drawer"
v-model=
"inputValue"
app
dark
floating
persistent
mobile-break-point=
"991"
width=
"260"
>
<v-navigation-drawer
id=
"app-drawer"
v-model=
"inputValue"
app
dark
floating
persistent
mobile-break-point=
"991"
width=
"260"
>
<v-img
:src=
"image"
height=
"100%"
>
<v-img
:src=
"image"
height=
"100%"
>
<v-layout
class=
"fill-height"
tag=
"v-list"
column
>
<v-layout
class=
"fill-height"
tag=
"v-list"
column
>
<v-snackbar
v-model=
"logoutSnackbar"
timeout =
"2000"
:top=
"true"
color=
"cyan"
>
로그아웃 성공.
</v-snackbar>
<v-list-tile
avatar
>
<v-list-tile
avatar
>
<v-list-tile-avatar
color=
"white"
>
<v-list-tile-avatar
color=
"white"
>
<v-img
:src=
"logo"
height=
"34"
contain
/>
<v-img
:src=
"logo"
height=
"34"
contain
/>
...
@@ -27,6 +36,7 @@
...
@@ -27,6 +36,7 @@
Log Out
Log Out
</v-list-tile-title>
</v-list-tile-title>
</v-list-tile>
</v-list-tile>
<v-list-tile
v-if=
"$store.state.isUserInfoGetted===false"
active-class=
"success"
class=
"v-list-item v-list__tile--buy"
to=
"/login"
>
<v-list-tile
v-if=
"$store.state.isUserInfoGetted===false"
active-class=
"success"
class=
"v-list-item v-list__tile--buy"
to=
"/login"
>
<v-list-tile-action>
<v-list-tile-action>
<v-icon>
mdi-package-up
</v-icon>
<v-icon>
mdi-package-up
</v-icon>
...
@@ -63,6 +73,7 @@ export default {
...
@@ -63,6 +73,7 @@ export default {
},
},
data
:
()
=>
({
data
:
()
=>
({
logo
:
'
favicon.ico
'
,
logo
:
'
favicon.ico
'
,
logoutSnackbar
:
false
,
links
:
[
links
:
[
{
{
to
:
'
/
'
,
to
:
'
/
'
,
...
@@ -83,17 +94,7 @@ export default {
...
@@ -83,17 +94,7 @@ export default {
to
:
'
/mypage
'
,
to
:
'
/mypage
'
,
icon
:
'
mdi-format-font
'
,
icon
:
'
mdi-format-font
'
,
text
:
'
My Page
'
text
:
'
My Page
'
},
}
// {
// to: '/maps',
// icon: 'mdi-map-marker',
// text: 'Maps'
// },
// {
// to: '/notifications',
// icon: 'mdi-bell',
// text: 'Notifications'
// }
]
]
}),
}),
computed
:
{
computed
:
{
...
@@ -115,6 +116,7 @@ export default {
...
@@ -115,6 +116,7 @@ export default {
...
mapMutations
(
'
app
'
,
[
'
setDrawer
'
,
'
toggleDrawer
'
]),
...
mapMutations
(
'
app
'
,
[
'
setDrawer
'
,
'
toggleDrawer
'
]),
logOut
:
function
(){
logOut
:
function
(){
this
.
logoutSnackbar
=
true
;
this
.
$http
.
get
(
'
/login/logout
'
).
then
((
res
)
=>
{
this
.
$http
.
get
(
'
/login/logout
'
).
then
((
res
)
=>
{
if
(
res
.
data
.
success
==
true
){
if
(
res
.
data
.
success
==
true
){
this
.
$store
.
commit
(
"
setInitialize
"
);
this
.
$store
.
commit
(
"
setInitialize
"
);
...
...
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