Skip to content

Commit

Permalink
refactor: add cancel btn
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Jul 16, 2024
1 parent 904cf17 commit 98546cf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/client/components/Alert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
>【邀请函】加入 Earthworm 创始会员 与我们一起成就更好的英语学习平台</span
>
<div class="flex space-x-4">
<button
class="text-black"
@click="handleCancel"
>
不感兴趣
</button>
<button
class="rounded-lg bg-white px-4 font-bold text-purple-600"
@click="handleShowDetails"
Expand All @@ -22,6 +28,10 @@ import { ref } from "vue";
const showAlert = ref(true);
function handleCancel() {
showAlert.value = false;
}
function handleShowDetails() {
window.open("https://earthworm-docs.cuixueshe.com/get-started/founding-member.html", "_blank");
showAlert.value = false;
Expand Down

0 comments on commit 98546cf

Please sign in to comment.