feat: 添加 MINECRAFT 联动控制模块

This commit is contained in:
2024-08-30 13:24:16 +08:00
parent 702d65ef47
commit bf66ff6e1c
3 changed files with 24 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
import { IS_DEV } from './env'; import { IS_DEV } from './env';
/** 启用“MINECRAFT 联动控制”模块 */
export const ENABLE_MC_CTRL_MODULE = IS_DEV;
/** 启用“导航”模块 */ /** 启用“导航”模块 */
export const ENABLE_NAV_MODULE = IS_DEV; export const ENABLE_NAV_MODULE = IS_DEV;

View File

@@ -8,8 +8,9 @@ import {
} from '@/assets/js/utils'; } from '@/assets/js/utils';
import { import {
ENABLE_SEARCH_MODULE, ENABLE_MC_CTRL_MODULE,
ENABLE_NAV_MODULE, ENABLE_NAV_MODULE,
ENABLE_SEARCH_MODULE,
ENABLE_TOOLBOX_MODULE, ENABLE_TOOLBOX_MODULE,
} from '@/config/modules'; } from '@/config/modules';
@@ -59,6 +60,16 @@ export const router = createRouter({
title: '工具箱', title: '工具箱',
}, },
}, },
{
path: '/minecraft-ctrl-view',
name: 'MinecraftCtrlView',
component: () => import('@/views/MinecraftCtrlView/MinecraftCtrlView.vue'),
meta: {
iconClass: 'mdi mdi-gamepad',
showInAside: ENABLE_MC_CTRL_MODULE,
title: 'MINECRAFT 联动控制',
},
},
{ {
path: '/about-view', path: '/about-view',
name: 'AboutView', name: 'AboutView',

View File

@@ -0,0 +1,9 @@
<template>
<div class="minecraft-ctrl-view"></div>
</template>
<script setup>
</script>
<style lang="less" scoped>
</style>