fix: gatewayButton

This commit is contained in:
2023-03-21 01:51:39 +09:00
parent 3c412f2803
commit aae730d39c
5 changed files with 14 additions and 5 deletions
+5
View File
@@ -119,6 +119,11 @@ function backButton()
return "<button type='button' class='btn btn-primary back_btn' onclick=location.replace('./')>돌아가기</button><br>"; return "<button type='button' class='btn btn-primary back_btn' onclick=location.replace('./')>돌아가기</button><br>";
} }
function gatewayButton()
{
return "<button type='button' class='btn btn-primary back_btn' onclick=location.replace('../')>돌아가기</button><br>";
}
function CoreBackButton() function CoreBackButton()
{ {
return "<button type='button' class='btn btn-primary back_btn' onclick=location.replace('v_chiefCenter.php')>돌아가기</button><br>"; return "<button type='button' class='btn btn-primary back_btn' onclick=location.replace('v_chiefCenter.php')>돌아가기</button><br>";
+2 -2
View File
@@ -94,7 +94,7 @@ if ($gencount >= $maxgeneral) {
<body> <body>
<div class="container"> <div class="container">
<div class="bg0 with_border legacy_layout">장 수 선 택<br><?= backButton() ?></div> <div class="bg0 with_border legacy_layout">장 수 선 택<br><?= gatewayButton() ?></div>
<table style="width:100%;" class="bg0 with_border"> <table style="width:100%;" class="bg0 with_border">
<tr> <tr>
<td><?= info(0) ?></td> <td><?= info(0) ?></td>
@@ -142,7 +142,7 @@ if ($gencount >= $maxgeneral) {
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
<div class="with_border legacy_layout"><?= backButton() ?></div> <div class="with_border legacy_layout"><?= gatewayButton() ?></div>
<div class="with_border legacy_layout"><?= banner() ?></div> <div class="with_border legacy_layout"><?= banner() ?></div>
</div> </div>
</div> </div>
+1 -1
View File
@@ -1,5 +1,5 @@
<template> <template>
<TopBackBar title="장수 생성" /> <TopBackBar title="장수 생성" type="gateway" />
<div v-if="gameConstStore && args" id="container" class="bg0"> <div v-if="gameConstStore && args" id="container" class="bg0">
<div class="nation-list"> <div class="nation-list">
+3 -1
View File
@@ -13,7 +13,7 @@ import "@scss/game_bg.scss";
const props = defineProps({ const props = defineProps({
type: { type: {
type: String as PropType<"normal" | "chief" | "close">, type: String as PropType<"normal" | "chief" | "close" | "gateway">,
default: "normal", default: "normal",
required: false, required: false,
}, },
@@ -22,6 +22,8 @@ const props = defineProps({
function back() { function back() {
if (props.type === "normal") { if (props.type === "normal") {
location.href = "./"; location.href = "./";
} else if (props.type === "gateway") {
location.href = "..";
} else if (props.type == "chief") { } else if (props.type == "chief") {
location.href = "v_chiefCenter.php"; location.href = "v_chiefCenter.php";
} else { } else {
+3 -1
View File
@@ -34,7 +34,7 @@ import VueTypes from "vue-types";
const props = defineProps({ const props = defineProps({
title: VueTypes.string.isRequired, title: VueTypes.string.isRequired,
type: { type: {
type: String as PropType<"normal" | "chief" | "close">, type: String as PropType<"normal" | "chief" | "close" | "gateway">,
default: "normal", default: "normal",
required: false, required: false,
}, },
@@ -70,6 +70,8 @@ watch(toggleSearch, (val) => {
function back() { function back() {
if (props.type === "normal") { if (props.type === "normal") {
location.href = "./"; location.href = "./";
} else if (props.type === "gateway") {
location.href = "..";
} else if (props.type == "chief") { } else if (props.type == "chief") {
location.href = "v_chiefCenter.php"; location.href = "v_chiefCenter.php";
} else { } else {