Skip to content

Commit

Permalink
fix: fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Mar 13, 2024
1 parent 6e9d2c5 commit bba07a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/widgets/MedalList/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export interface MedalGroup {
desc: string;
color: string;
bindEvent: Array<string>;
alias: string;
deprecateType?: string;
hasChangedInRetro?: boolean;
medal: Array<string>;
Expand Down
16 changes: 6 additions & 10 deletions src/widgets/MemoryList/Memory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ import { getImagePath } from "@/utils/utils";
import { CharMemory, Memory } from "./types";
const getSrcMedal = (mmr: Memory) =>
`https://torappu.prts.wiki/assets/medal_icon/${mmr.medal.id}`;
const getSrcElite = (elite: string) =>
`/images/${getImagePath(`图标_升级_精英化${elite || "0"}.png`)}`;
export default defineComponent({
name: "Memory",
components: {
Expand Down Expand Up @@ -42,16 +48,6 @@ export default defineComponent({
const link = computed(() => {
return `/w/${props.charMemory.char}`;
});
const getSrcElite = (elite: string) => {
return `/images/${getImagePath(`图标_升级_精英化${elite || "0"}.png`)}`;
};
const getSrcMedal = (mmr: Memory) => {
/*
const search = mmr.medal.alias.replace(" ", "_");
return `/images/${getImagePath(`蚀刻章_${search}.png`)}`;
*/
return `https://torappu.prts.wiki/assets/medal_icon/${mmr.medal.id}`;
};
const srcfavor = `/images/${getImagePath("图标_信赖.png")}`;
const srcplay = `/images/${getImagePath("情报处理室_播放按钮.png")}`;
return {
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/MemoryList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default defineComponent({
.map(([, value]: [string, any]) => {
return {
medal: value.name as string,
alias: value.alias as string,
id: value.id as string,
desc: value.desc as string,
method: value.method as string,
};
Expand Down

0 comments on commit bba07a4

Please sign in to comment.