Skip to content

Commit

Permalink
feat(viewer): 更新
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9804 committed Sep 3, 2023
1 parent b6cd858 commit d5ddc0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import UpdatedPortalCard from "@widgets/UpdatedPortalCard.vue";
export interface HomeDisplayInfo {
type: "mainstory" | "student" | "minigame";
type: "mainstory" | "otherStory" | "student" | "minigame";
icon?: string;
jumpTo?: string | number;
title: string;
Expand All @@ -21,14 +21,8 @@ const homepageDisplayInfoList: HomeDisplayInfo[] = [
style: "pixelize",
},
{
type: "student",
jumpTo: 10075,
title: "姫木 梅露",
},
{
type: "student",
jumpTo: 13013,
title: "秋泉 红叶",
type: "otherStory",
title: "若藻总力战剧情",
},
];
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ function getDialogTitle() {
date: props.info.endDate || "",
}
)}`;
case "otherStory":
return `${getI18nString(userLanguage.value, "updates.updated", {
title: props.info.title,
})}`;
default:
return `${getI18nString(userLanguage.value, "updates.updated", {
title: props.info.title,
Expand All @@ -99,6 +103,11 @@ function handleJumpToRequest() {
"_self"
);
break;
case "otherStory":
router.push({
name: "OtherStory",
});
break;
default:
break;
}
Expand Down

0 comments on commit d5ddc0f

Please sign in to comment.