Skip to content

Commit

Permalink
chore: banner only open new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
duchunter committed Nov 8, 2023
1 parent 3801640 commit 120dc19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions src/renderer/components/notice/CyberMonthPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@

<script>
export default {
props: {
newTab: {
type: Boolean,
default: () => false
}
},
computed: {
dialogVisible () {
return this.$store.state.notice.showCyberMonthPopup
Expand All @@ -48,11 +42,7 @@ export default {
upgradePlan () {
this.close()
const path = '/promo/cyber-month-2023'
if (this.newTab) {
window.open(path, '_blank')
} else {
this.$router.push(path)
}
window.open(path, '_blank')
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

<WelcomeToBusiness />

<CyberMonthPopup new-tab />
<CyberMonthPopup />
</client-only>
</div>
</div>
Expand Down

0 comments on commit 120dc19

Please sign in to comment.