fix: 移除开发环境下的更新检查逻辑
This commit is contained in:
@@ -74,21 +74,6 @@ export function useAppUpdate() {
|
|||||||
updateUrl?: string;
|
updateUrl?: string;
|
||||||
}> {
|
}> {
|
||||||
state.isChecking = true;
|
state.isChecking = true;
|
||||||
if (import.meta.env.DEV) {
|
|
||||||
const current = await getCurrentVersion();
|
|
||||||
// 开发环境下不检查更新
|
|
||||||
state.currentVersion = current;
|
|
||||||
state.hasUpdate = false;
|
|
||||||
state.latestVersion = current;
|
|
||||||
state.forceUpdate = false;
|
|
||||||
state.updateMessage = "";
|
|
||||||
state.updateUrl = "";
|
|
||||||
state.isChecking = false;
|
|
||||||
return {
|
|
||||||
hasUpdate: false,
|
|
||||||
currentVersion: current,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
// 1. 获取当前版本
|
// 1. 获取当前版本
|
||||||
const current = await getCurrentVersion();
|
const current = await getCurrentVersion();
|
||||||
|
|||||||
Reference in New Issue
Block a user