update

parent eff70c5c
...@@ -10,6 +10,7 @@ export const MenuItemScript = defineComponent({ ...@@ -10,6 +10,7 @@ export const MenuItemScript = defineComponent({
}, },
}, },
setup(props) { setup(props) {
console.log(props.item,'props');
const $route = useRoute(); const $route = useRoute();
const isActive = computed(() => { const isActive = computed(() => {
return ( return (
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
:label="item.pageName" :label="item.pageName"
:icon="item.pageIcon" :icon="item.pageIcon"
:header-style="`padding-left: ${item.level * 1.8}rem`" :header-style="`padding-left: ${item.level * 1.8}rem`"
:model-value="isActive"
> >
<MenuItemComponent <MenuItemComponent
v-for="(menuItem, menuItemIdx) in item.children" v-for="(menuItem, menuItemIdx) in item.children"
......
...@@ -36,7 +36,7 @@ export enum Pages { ...@@ -36,7 +36,7 @@ export enum Pages {
bcBK = 'bc-booking', bcBK = 'bc-booking',
DMQ = 'danh-muc-quyen', DMQ = 'danh-muc-quyen',
CHLS = 'cau-hinh-live-stream', CHLS = 'cau-hinh-live-stream',
BookingHuy="danh-sach-booking-huy" BookingHuy = "danh-sach-booking-huy"
} }
const routes: RouteRecordRaw[] = [ const routes: RouteRecordRaw[] = [
...@@ -110,116 +110,116 @@ const routes: RouteRecordRaw[] = [ ...@@ -110,116 +110,116 @@ const routes: RouteRecordRaw[] = [
name: Pages.customerWaiting, name: Pages.customerWaiting,
}, },
{ {
path: 'xep-hang-khach-hang', path: '/xep-hang-khach-hang',
component: () => component: () =>
import('pages/khach-hang/xep-hang-khach-hang/index.vue'), import('pages/khach-hang/xep-hang-khach-hang/index.vue'),
name: Pages.customerRank, name: Pages.customerRank,
}, },
{ {
path: 'linh-vuc-hoat-dong', path: '/linh-vuc-hoat-dong',
component: () => import('pages/linh-vuc-hoat-dong/index.vue'), component: () => import('pages/linh-vuc-hoat-dong/index.vue'),
name: Pages.field, name: Pages.field,
}, },
{ {
path: 'bai-viet', path: '/bai-viet',
component: () => import('pages/bai-viet/index.vue'), component: () => import('pages/bai-viet/index.vue'),
name: Pages.post, name: Pages.post,
}, },
{ {
path: 'danh-muc-bai-viet', path: '/danh-muc-bai-viet',
component: () => import('pages/danh-muc-bai-viet/index.vue'), component: () => import('pages/danh-muc-bai-viet/index.vue'),
name: Pages.postCategory, name: Pages.postCategory,
}, },
{ {
path: 'banner', path: '/banner',
component: () => import('pages/banner/index.vue'), component: () => import('pages/banner/index.vue'),
name: Pages.banner, name: Pages.banner,
}, },
{ {
path: 'thong-tin-chung', path: '/thong-tin-chung',
component: () => import('pages/thong-tin-chung/index.vue'), component: () => import('pages/thong-tin-chung/index.vue'),
name: Pages.infoVAB, name: Pages.infoVAB,
}, },
{ {
path: 'menu', path: '/menu',
component: () => import('pages/menu/index.vue'), component: () => import('pages/menu/index.vue'),
name: Pages.menu, name: Pages.menu,
}, },
{ {
path: 'danh-sach-booking', path: '/danh-sach-booking',
component: () => import('pages/danh-sach-booking/index.vue'), component: () => import('pages/danh-sach-booking/index.vue'),
name: Pages.listBooking, name: Pages.listBooking,
}, },
{ {
path: 'danh-sach-booking-cho-duyet', path: '/danh-sach-booking-cho-duyet',
component: () => import('pages/danh-sach-booking-cho-duyet/index.vue'), component: () => import('pages/danh-sach-booking-cho-duyet/index.vue'),
name: Pages.listBookingBrowsing, name: Pages.listBookingBrowsing,
}, },
{ {
path: 'danh-sach-booking-cho-huy', path: '/danh-sach-booking-cho-huy',
component: () => import('pages/danh-sach-booking-cho-huy/index.vue'), component: () => import('pages/danh-sach-booking-cho-huy/index.vue'),
name: Pages.BookingHuy, name: Pages.BookingHuy,
}, },
{ {
path: 'cong-viec', path: '/cong-viec',
component: () => import('pages/cong-viec/index.vue'), component: () => import('pages/cong-viec/index.vue'),
name: Pages.work, name: Pages.work,
}, },
{ {
path: 'cau-hinh-trang-tinh', path: '/cau-hinh-trang-tinh',
component: () => import('pages/cau-hinh-trang-tinh/index.vue'), component: () => import('pages/cau-hinh-trang-tinh/index.vue'),
name: Pages.configSystem, name: Pages.configSystem,
}, },
{ {
path: 'cau-hinh-live-stream', path: '/cau-hinh-live-stream',
component: () => import('pages/cau-hinh-live-stream/index.vue'), component: () => import('pages/cau-hinh-live-stream/index.vue'),
name: Pages.CHLS, name: Pages.CHLS,
}, },
{ {
path: 'cau-hinh-tin-tuc', path: '/cau-hinh-tin-tuc',
component: () => import('pages/cau-hinh-tin-tuc/index.vue'), component: () => import('pages/cau-hinh-tin-tuc/index.vue'),
name: Pages.news, name: Pages.news,
}, },
{ {
path: 'cau-hinh-san-pham-noi-bat', path: '/cau-hinh-san-pham-noi-bat',
component: () => import('pages/cau-hinh-san-pham-noi-bat/index.vue'), component: () => import('pages/cau-hinh-san-pham-noi-bat/index.vue'),
name: Pages.hotProduct, name: Pages.hotProduct,
}, },
{ {
path: 'cau-hinh-doi-tac-truyen-thong', path: '/cau-hinh-doi-tac-truyen-thong',
component: () => component: () =>
import('pages/cau-hinh-doi-tac-truyen-thong/index.vue'), import('pages/cau-hinh-doi-tac-truyen-thong/index.vue'),
name: Pages.configPartner, name: Pages.configPartner,
}, },
{ {
path: 'cau-hinh-trang-chu', path: '/cau-hinh-trang-chu',
component: () => import('pages/cau-hinh-trang-chu/index.vue'), component: () => import('pages/cau-hinh-trang-chu/index.vue'),
name: Pages.configHome, name: Pages.configHome,
}, },
{ {
path: 'danh-sach-dich-vu', path: '/danh-sach-dich-vu',
component: () => import('pages/danh-sach-dich-vu/index.vue'), component: () => import('pages/danh-sach-dich-vu/index.vue'),
name: Pages.listService, name: Pages.listService,
}, },
{ {
path: 'bc-truy-cap', path: '/bc-truy-cap',
component: () => import('pages/bc-truy-cap/index.vue'), component: () => import('pages/bc-truy-cap/index.vue'),
name: Pages.bcTC, name: Pages.bcTC,
}, },
{ {
path: 'bc-yeu-thich', path: '/bc-yeu-thich',
component: () => import('pages/bc-yeu-thich/index.vue'), component: () => import('pages/bc-yeu-thich/index.vue'),
name: Pages.bcYT, name: Pages.bcYT,
}, },
{ {
path: 'bc-booking', path: '/bc-booking',
component: () => import('pages/bc-booking/index.vue'), component: () => import('pages/bc-booking/index.vue'),
name: Pages.bcBK, name: Pages.bcBK,
}, },
{ {
path: 'danh-muc-quyen', path: '/danh-muc-quyen',
component: () => import('pages/danh-muc-quyen/index.vue'), component: () => import('pages/danh-muc-quyen/index.vue'),
name: Pages.DMQ, name: Pages.DMQ,
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment