feat: improve check updates (#6257)
Co-authored-by: monkey <maotao@tutamail.com>
This commit is contained in:
parent
a1091bad46
commit
48d70182b4
@ -6,7 +6,7 @@ import { $t } from '@vben/locales';
|
|||||||
import { useVbenModal } from '@vben-core/popup-ui';
|
import { useVbenModal } from '@vben-core/popup-ui';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
// 轮训时间,分钟
|
// 轮询时间,分钟
|
||||||
checkUpdatesInterval?: number;
|
checkUpdatesInterval?: number;
|
||||||
// 检查更新的地址
|
// 检查更新的地址
|
||||||
checkUpdateUrl?: string;
|
checkUpdateUrl?: string;
|
||||||
@ -46,6 +46,7 @@ async function getVersionTag() {
|
|||||||
const response = await fetch(props.checkUpdateUrl, {
|
const response = await fetch(props.checkUpdateUrl, {
|
||||||
cache: 'no-cache',
|
cache: 'no-cache',
|
||||||
method: 'HEAD',
|
method: 'HEAD',
|
||||||
|
redirect: 'manual',
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user