Skip to content

Commit

Permalink
chore: update warning for backend migration
Browse files Browse the repository at this point in the history
  • Loading branch information
darwintree committed Dec 12, 2023
1 parent bf47e60 commit 230de3c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const route = useRoute()
const { locale, availableLocales, t } = useI18n()
const showAlert = computed(() => {
return location.hostname === 'viewer.strawberrytree.top'
// return location.hostname === 'viewer.strawberrytree.top'
return true
})
const options = availableLocales.map((item) => {
Expand All @@ -39,11 +40,8 @@ watch(locale, (newVal) => {
<div class="main">
<n-notification-provider placement="top" :max="2">
<n-dialog-provider>
<n-alert v-if="showAlert" type="warning">
本域名将停止服务,请访问新域名
<a target="_blank" href="https://sc-viewer.top"
>https://sc-viewer.top</a
>
<n-alert v-if="showAlert" type="warning" closable>
网站后端近日迁移中,可能存在不稳定
</n-alert>
<div class="first-line">
<nav>
Expand Down

2 comments on commit 230de3c

@vercel
Copy link

@vercel vercel bot commented on 230de3c Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 230de3c Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.