add 添加自定义游戏配置

This commit is contained in:
yupi
2022-09-16 22:17:31 +08:00
parent d03ef31503
commit 7d73c64d62
5 changed files with 87 additions and 5 deletions

View File

@@ -30,8 +30,8 @@
>
地域模式
</a-button>
<a-button block style="margin-bottom: 16px" disabled @click="toGamePage">
自定义暂未开放
<a-button block style="margin-bottom: 16px" @click="toGamePage(null)">
自定义
</a-button>
</div>
</template>
@@ -53,8 +53,10 @@ const { setGameConfig } = useGlobalStore();
const toGamePage = (config?: GameConfig) => {
if (config) {
setGameConfig(config);
router.push("/game");
} else {
router.push("/config");
}
router.push("/game");
};
</script>