mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🐛 修复特定内容渲染错误
This commit is contained in:
@@ -13,8 +13,8 @@
|
|||||||
<div v-for="i in next" :key="i.role_id" class="tcb-item">
|
<div v-for="i in next" :key="i.role_id" class="tcb-item">
|
||||||
<img :src="i.head_icon" :alt="i.name" @click="toBirth(i)" :title="i.name" />
|
<img :src="i.head_icon" :alt="i.name" @click="toBirth(i)" :title="i.name" />
|
||||||
<div class="tcb-item-info">
|
<div class="tcb-item-info">
|
||||||
<span>{{ i.name }} 所属:{{ i.belong }}</span>
|
<span>{{ i.name }} 所属:{{ i.belong === "" ? "未知" : i.belong }}</span>
|
||||||
<span>{{ i.introduce }}</span>
|
<span>{{ parseDesc(i.introduce) }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -59,6 +59,12 @@ function toBirth(type: TGApp.Archive.Birth.RoleItem | true) {
|
|||||||
}
|
}
|
||||||
router.push({ name: "留影叙佳期", params: { date: dateStr } });
|
router.push({ name: "留影叙佳期", params: { date: dateStr } });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function parseDesc(intro: string): string {
|
||||||
|
const dom = document.createElement("div");
|
||||||
|
dom.innerHTML = intro;
|
||||||
|
return dom.innerText;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="css" scoped>
|
<style lang="css" scoped>
|
||||||
.tcb-container {
|
.tcb-container {
|
||||||
@@ -72,6 +78,7 @@ function toBirth(type: TGApp.Archive.Birth.RoleItem | true) {
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
box-shadow: 0 0 5px inset var(--common-shadow-2);
|
box-shadow: 0 0 5px inset var(--common-shadow-2);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
row-gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tcb-top-none,
|
.tcb-top-none,
|
||||||
|
|||||||
Reference in New Issue
Block a user