|
@@ -81,8 +81,13 @@
|
|
|
error
|
|
|
} from "uview-plus";
|
|
|
import TipDialog from "@/components/dialog/tipDialog";
|
|
|
- import {} from "@/utils/versionUpdate.js"
|
|
|
- import {useVersionUpdate} from "../../utils/versionUpdate";
|
|
|
+ import {
|
|
|
+ useVersionUpdate
|
|
|
+ } from "@/utils/versionUpdate.js"
|
|
|
+
|
|
|
+ const {
|
|
|
+ showUpdateDialog
|
|
|
+ } = useVersionUpdate();
|
|
|
|
|
|
let indexData = reactive({
|
|
|
phoneNumber: null,
|
|
@@ -109,10 +114,6 @@
|
|
|
const tipDialogRef2 = ref(null)
|
|
|
const updateUrl = ref(null)
|
|
|
|
|
|
- const {
|
|
|
- requestInstallPermission,
|
|
|
- initDownload,
|
|
|
- progress} = useVersionUpdate()
|
|
|
|
|
|
const store = useIsCanBack();
|
|
|
onUnload(() => {
|
|
@@ -150,7 +151,7 @@
|
|
|
plus.runtime.openURL(appStoreUrl)
|
|
|
} else {
|
|
|
// 处理 Android/HarmonyOS 设备
|
|
|
- /* const {
|
|
|
+ const {
|
|
|
brand
|
|
|
} = systemInfo;
|
|
|
const androidPackage = 'com.llisoft.ezy'; // 安卓包名
|
|
@@ -191,11 +192,7 @@
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
- });*/
|
|
|
-
|
|
|
- initDownload(updateUrl.value)
|
|
|
-
|
|
|
-
|
|
|
+ });
|
|
|
|
|
|
}
|
|
|
}
|