|
|
@@ -30,7 +30,7 @@ import { ElLoading, ElMessage } from "element-plus";
|
|
|
import { QuoteScene, SceneType } from "@/store/scene";
|
|
|
import { QuiskExpose } from "@/helper/mount";
|
|
|
|
|
|
-const props = defineProps<{ caseId: number; title: string }>();
|
|
|
+const props = defineProps<{ caseId: number; title: string, res:any }>();
|
|
|
enum State {
|
|
|
uncreate,
|
|
|
package,
|
|
|
@@ -67,7 +67,7 @@ const params = {
|
|
|
};
|
|
|
// 初始化
|
|
|
const initial = async () => {
|
|
|
- const res = await axios.get(checkHasDownload, { params });
|
|
|
+ const res = props.res || await axios.get(checkHasDownload, { params });
|
|
|
state.value = getState(res.data.downloadStatus);
|
|
|
count.value = res.data.count;
|
|
|
downloadURL.value = res.data.downloadUrl;
|
|
|
@@ -142,6 +142,7 @@ onUnmounted(() => clearTimeout(timer));
|
|
|
|
|
|
defineExpose<QuiskExpose>({
|
|
|
submit: async () => {
|
|
|
+ alert("downloadCaseScene");
|
|
|
await initial();
|
|
|
const loading = ElLoading.service({
|
|
|
lock: true,
|