This commit is contained in:
2026-05-17 21:23:25 +08:00
parent 6a5d729568
commit 8d784c2939
9 changed files with 746 additions and 23 deletions

View File

@ -454,7 +454,7 @@
<script type="module" src="./index.js"></script>
<script type="module">
import { kernel } from './src/main.ts';
import { init, getAutoLoadModelList, getPlacementZone, getEvent, getHotspot,executeEvent2 } from './index.js';
import { init, getAutoLoadModelList, getPlacementZone, getEvent, getHotspot,executeEvent2 ,getProductConfig} from './index.js';
await init()
await getAutoLoadModelList()
@ -531,21 +531,7 @@
});
const currentText = this.textContent;
const response = await fetch(`http://localhost:3001/api/product-configs/by-sku/${currentText}`);
const result = await response.json();
if (result.code === 200) {
console.log(result.data);
const { enable_placement_zone } = result.data;
sku = currentText;
// await initPlacementZoneConfig();
if (enable_placement_zone) {
getPlacementZone(currentText)
}
else {
executeEvent2(result)
}
}
await getProductConfig(currentText)
});