|
@@ -1,4 +1,5 @@
|
|
import {ref} from "vue"
|
|
import {ref} from "vue"
|
|
|
|
+import cacheManager from "./cacheManager";
|
|
|
|
|
|
export function useVersionUpdate() {
|
|
export function useVersionUpdate() {
|
|
|
|
|
|
@@ -62,6 +63,8 @@ export function useVersionUpdate() {
|
|
url: apkUrl,
|
|
url: apkUrl,
|
|
success: (downloadResult) => {
|
|
success: (downloadResult) => {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
|
+ // 清理原始缓存 防止新版本缓存 遭遇原始缓存问题
|
|
|
|
+ cacheManager.clearAll();
|
|
if (downloadResult.statusCode === 200) {
|
|
if (downloadResult.statusCode === 200) {
|
|
const tempFilePath = downloadResult.tempFilePath;
|
|
const tempFilePath = downloadResult.tempFilePath;
|
|
|
|
|