diff --git a/hwe/ts/components/BottomBar.vue b/hwe/ts/components/BottomBar.vue
index afbb3611..cf439b1f 100644
--- a/hwe/ts/components/BottomBar.vue
+++ b/hwe/ts/components/BottomBar.vue
@@ -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 {
diff --git a/hwe/ts/components/TopBackBar.vue b/hwe/ts/components/TopBackBar.vue
index ce7cbd0f..46fd522e 100644
--- a/hwe/ts/components/TopBackBar.vue
+++ b/hwe/ts/components/TopBackBar.vue
@@ -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 {