fix: gatewayButton
This commit is contained in:
@@ -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
@@ -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
@@ -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">
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user