mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 16:46:19 +08:00
chore: Rename the website directory to docs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user