|
@@ -343,22 +343,23 @@
|
|
}
|
|
}
|
|
canDownload.value = true;
|
|
canDownload.value = true;
|
|
checkDownLoad(params).then(async (res) => {
|
|
checkDownLoad(params).then(async (res) => {
|
|
- console.log(res);
|
|
|
|
|
|
+ let sceneDownloadRes = res;
|
|
if (res.downloadStatus != 3) {
|
|
if (res.downloadStatus != 3) {
|
|
// 未下载过,需要打包
|
|
// 未下载过,需要打包
|
|
if (res.downloadStatus != 1) {
|
|
if (res.downloadStatus != 1) {
|
|
- await sceneDownload(params);
|
|
|
|
|
|
+ sceneDownloadRes = await sceneDownload(params);
|
|
}
|
|
}
|
|
openDownModal(true, {
|
|
openDownModal(true, {
|
|
...record,
|
|
...record,
|
|
});
|
|
});
|
|
- if (res.downloadStatus == 1) {
|
|
|
|
|
|
+ if (sceneDownloadRes.downloadStatus == 1) {
|
|
if (timer.value) {
|
|
if (timer.value) {
|
|
afterClose();
|
|
afterClose();
|
|
}
|
|
}
|
|
timer.value = setInterval(() => {
|
|
timer.value = setInterval(() => {
|
|
downloadProcess(params).then((processres) => {
|
|
downloadProcess(params).then((processres) => {
|
|
- console.log('processres', res);
|
|
|
|
|
|
+ console.log('processres', res, params);
|
|
|
|
+ debugger
|
|
if (processres.percent >= 100) {
|
|
if (processres.percent >= 100) {
|
|
canDownload.value = false;
|
|
canDownload.value = false;
|
|
afterClose();
|
|
afterClose();
|