From a521fe74845f973e28d015c33522a1390613af09 Mon Sep 17 00:00:00 2001 From: xiaoyu <7547189+xytoki@users.noreply.github.com> Date: Mon, 29 Jan 2024 22:18:46 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20add=20search=20in=20miyoush?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Achievement/AchivementItem.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/Achievement/AchivementItem.vue b/src/views/Achievement/AchivementItem.vue index d8fd5da..3feda4d 100644 --- a/src/views/Achievement/AchivementItem.vue +++ b/src/views/Achievement/AchivementItem.vue @@ -27,14 +27,13 @@ - 攻略 + {{ contributed[i.id] ? '攻略' : '搜索' }} {{ amos[i.desc].replace('{param0}', i.total.toString()) }} @@ -130,8 +129,12 @@ export default defineComponent({ AQ: '魔神', LQ: '邀约', } as Record + const searchMys = (i: Achievement) => { + return `https://www.miyoushe.com/ys/search?keyword=${encodeURIComponent(i18n.amos[i.name])}` + } return { img, + searchMys, amos: toRef(i18n, 'amos'), questType: computed(() => { if (props.i.trigger && props.i.trigger.task && props.i.trigger.task.length > 0) {