1
This commit is contained in:
18
index.html
18
index.html
@ -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)
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user