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
+3 -1
View File
@@ -13,7 +13,7 @@ import "@scss/game_bg.scss";
const props = defineProps({
type: {
type: String as PropType<"normal" | "chief" | "close">,
type: String as PropType<"normal" | "chief" | "close" | "gateway">,
default: "normal",
required: false,
},
@@ -22,6 +22,8 @@ const props = defineProps({
function back() {
if (props.type === "normal") {
location.href = "./";
} else if (props.type === "gateway") {
location.href = "..";
} else if (props.type == "chief") {
location.href = "v_chiefCenter.php";
} else {
+3 -1
View File
@@ -34,7 +34,7 @@ import VueTypes from "vue-types";
const props = defineProps({
title: VueTypes.string.isRequired,
type: {
type: String as PropType<"normal" | "chief" | "close">,
type: String as PropType<"normal" | "chief" | "close" | "gateway">,
default: "normal",
required: false,
},
@@ -70,6 +70,8 @@ watch(toggleSearch, (val) => {
function back() {
if (props.type === "normal") {
location.href = "./";
} else if (props.type === "gateway") {
location.href = "..";
} else if (props.type == "chief") {
location.href = "v_chiefCenter.php";
} else {