fix(owner-vue): sidebar warning 해결
- model 속성 수정
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<!-- <v-navigation-drawer v-model="drawer" app> -->
|
||||
<v-navigation-drawer
|
||||
v-model="drawer"
|
||||
v-model="drawer_sidebar"
|
||||
app>
|
||||
<v-img
|
||||
height="140"
|
||||
class="px-7 mx-7"
|
||||
:src="require('@/assets/just-logo.png')"
|
||||
contain/>
|
||||
height="140"
|
||||
class="px-7 mx-7"
|
||||
:src="require('@/assets/just-logo.png')"
|
||||
contain/>
|
||||
<v-divider></v-divider>
|
||||
<v-list>
|
||||
<v-list-item v-for="(link,index) in links" :key="link.icon" link @click="clickGo(index, link.url)">
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user