diff --git a/src/router/index.ts b/src/router/index.ts index ace53b1..a673146 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -180,6 +180,15 @@ const routes: Array = [ parent: 'manage-videoCollect', }, }, + { + path: 'live-lottery', + name: 'manage-liveLottery', + component: () => import('@/views/open_live/OpenLottery.vue'), + meta: { + title: '直播抽奖', + keepAlive: true, + }, + }, ], }, { diff --git a/src/views/ManageLayout.vue b/src/views/ManageLayout.vue index 390fcf7..4cb8819 100644 --- a/src/views/ManageLayout.vue +++ b/src/views/ManageLayout.vue @@ -151,6 +151,21 @@ const menuOptions = [ icon: renderIcon(Lottery24Filled), //disabled: accountInfo.value?.isEmailVerified == false, }, + { + label: () => + h( + RouterLink, + { + to: { + name: 'manage-liveLottery', + }, + }, + { default: () => '直播抽奖' } + ), + key: 'manage-liveLottery', + icon: renderIcon(Lottery24Filled), + //disabled: accountInfo.value?.isEmailVerified == false, + }, ] async function resendEmail() { diff --git a/src/views/manage/LotteryView.vue b/src/views/manage/LotteryView.vue index 2e5efeb..8e6093a 100644 --- a/src/views/manage/LotteryView.vue +++ b/src/views/manage/LotteryView.vue @@ -321,7 +321,7 @@ function getLevelColor(level: number) {