Skip to content

Commit

Permalink
Check if it is mac
Browse files Browse the repository at this point in the history
  • Loading branch information
zyronon committed Dec 7, 2023
1 parent 88692bc commit 24eca23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/CollectNotice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ watch(() => settingStore.load, (n) => {
}
})
const isMac = /macintosh|mac os x/i.test(navigator.userAgent);
</script>

<template>
Expand Down Expand Up @@ -63,7 +65,7 @@ watch(() => settingStore.load, (n) => {
点亮它!
</div>
</div>
<div class="collect-keyboard">或使用收藏快捷键<span class="active">Ctrl + D</span></div>
<div class="collect-keyboard">或使用收藏快捷键<span class="active">{{isMac?'Command':'Ctrl'}} + D</span></div>
</div>
<BaseButton v-else size="large" @click="toggleNotice">我想收藏</BaseButton>
</transition>
Expand Down

0 comments on commit 24eca23

Please sign in to comment.