mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🐛 修复活动组件点击异常
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<v-list class="position-list">
|
||||
<v-list-item :title="card.title" :subtitle="card.abstract">
|
||||
<template #prepend>
|
||||
<v-avatar rounded="0" @click="createPost(card.postId, card.title)">
|
||||
<v-avatar rounded="0" @click="openPosition(card)">
|
||||
<v-img :src="card.icon" class="position-icon" />
|
||||
</v-avatar>
|
||||
</template>
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @since Beta v0.5.3
|
||||
*/
|
||||
|
||||
import Mys from "../index.js";
|
||||
|
||||
/**
|
||||
* @description 根据热点追踪信息转为渲染用的数据
|
||||
* @since Beta v0.5.3
|
||||
@@ -21,10 +23,14 @@ function getPositionCard(
|
||||
} else {
|
||||
endStr = new Date(Number(position.end_time)).toLocaleDateString().replace(/\//g, "-");
|
||||
}
|
||||
let link = position.url;
|
||||
if (position.url === "" && position.content_id !== 0) {
|
||||
link = Mys.Api.Obc.replace("{contentId}", position.content_id.toString());
|
||||
}
|
||||
const card: TGApp.Plugins.Mys.Position.RenderCard = {
|
||||
title: position.title,
|
||||
postId: Number(position.url.split("/").pop()),
|
||||
link: position.url,
|
||||
postId: position.url !== "" ? Number(position.url.split("/").pop()) : position.content_id,
|
||||
link: link,
|
||||
icon: position.icon,
|
||||
abstract: position.abstract,
|
||||
time: {
|
||||
|
||||
Reference in New Issue
Block a user