Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quasar-web-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Nguyễn Hải Sơn
quasar-web-base
Commits
fa35ee2e
Commit
fa35ee2e
authored
Apr 10, 2023
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
eff70c5c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
24 deletions
+24
-24
MenuItem.ts
src/components/menu-list/menu-item/MenuItem.ts
+1
-0
index.vue
src/components/menu-list/menu-item/index.vue
+0
-1
routes.ts
src/router/routes.ts
+23
-23
No files found.
src/components/menu-list/menu-item/MenuItem.ts
View file @
fa35ee2e
...
@@ -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
(
...
...
src/components/menu-list/menu-item/index.vue
View file @
fa35ee2e
...
@@ -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"
...
...
src/router/routes.ts
View file @
fa35ee2e
...
@@ -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
,
},
},
...
...
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