|
|
@@ -1183,14 +1183,14 @@ async function openAIdrawCase() {
|
|
|
}
|
|
|
function handleAIdrawCasePhotos(num) {
|
|
|
const iframe = document.getElementById("iframe-outside");
|
|
|
- console.log(iframe, "iframe");
|
|
|
- if (iframe && iframe.classList.contains("show") == false) {
|
|
|
+ console.log(iframe, "iframe", iframe.classList.contains("show"));
|
|
|
+ if (iframe) {
|
|
|
+ iframe.src = "./model.html?m=" + num;
|
|
|
iframe.classList.add("show");
|
|
|
iframe.onload = () => {
|
|
|
console.log(iframe.contentWindow, "contentWindow");
|
|
|
frameLoad(iframe.contentWindow.__sdk, num);
|
|
|
};
|
|
|
- iframe.src = "./model.html?m=" + num;
|
|
|
}
|
|
|
}
|
|
|
const handleView = (src) => {
|