feat(seller): align PC decoration editor and remove legacy components

This commit is contained in:
pikachu1995@126.com
2026-11-03 11:11:57 +08:00
parent fb99824a3a
commit 5300988643
64 changed files with 19228 additions and 7511 deletions

View File

@@ -206,7 +206,11 @@ function getIndexData() {
}
async function parsePageData(pageData) {
const dataJson = JSON.parse(pageData);
const dataJson = typeof pageData === 'string' ? JSON.parse(pageData) : pageData;
if (dataJson.version === 2 || dataJson.version === '2.0') {
modelForm.value = dataJson;
return;
}
for (let i = 0; i < dataJson.list.length; i++) {
const type = dataJson.list[i].type;
if (type === "carousel2") {