fix(owner-vue): sidebar warning 해결

- model 속성 수정
This commit is contained in:
hoon7566
2022-03-21 13:26:28 +09:00
parent 482a3848c5
commit 33eeb30545
2 changed files with 14 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
<template>
<v-app id="inspire">
<side-bar :drawer="drawer"></side-bar>
<side-bar :drawer="drawer" @drawerEvent="drawer = !drawer"></side-bar>
<top-bar @drawerEvent="drawer = !drawer"
:notificationCounts="notificationCounts"/>
<v-main style="background: #f5f5f540">

View File

@@ -1,7 +1,7 @@
<template>
<!-- <v-navigation-drawer v-model="drawer" app> -->
<v-navigation-drawer
v-model="drawer"
v-model="drawer_sidebar"
app>
<v-img
height="140"
@@ -29,14 +29,22 @@ export default {
props: ["drawer"],
data() {
return {
drawer_sidebar:false,
links: [
{name: "지난 주문", url: "/prev-order", icon: "mdi-clipboard-check-outline"},
{name: "카테고리", url: "/category", icon: "mdi-shape-outline"},
{name: "주문", url: "/order", icon: "mdi-order-numeric-ascending"},
{name: "메뉴 관리", url: "/menu", icon: "mdi-cog-outline"},
{name: "알림", url: "/notification", icon: "mdi-bell-outline"},
],
};
},
watch:{
drawer (){
this.drawer_sidebar= !this.drawer_sidebar
},
},
methods: {
clickGo: function (index, url) {
this.value = index;