chore: Rename the website directory to docs

This commit is contained in:
vben
2024-08-01 21:05:31 +08:00
parent 4a7a4f97ee
commit 06ad5ad871
73 changed files with 154 additions and 374 deletions

View File

@@ -22,6 +22,12 @@ const { toast } = useToast();
async function getVersionTag() {
try {
if (
location.hostname === 'localhost' ||
location.hostname === '127.0.0.1'
) {
return null;
}
const response = await fetch('/', {
cache: 'no-cache',
method: 'HEAD',
@@ -48,7 +54,7 @@ async function checkForUpdates() {
return;
}
if (lastVersionTag.value !== versionTag) {
if (lastVersionTag.value !== versionTag && versionTag) {
clearInterval(timer.value);
handleNotice(versionTag);
}