|
|
|
@ -570,13 +570,14 @@ export default { |
|
|
|
processBackendCptData (item) { |
|
|
|
let demoData = {} |
|
|
|
let configuration = {} |
|
|
|
const tempOnlyId = getRandomString(20) |
|
|
|
try { |
|
|
|
demoData = JSON.parse(item.demoData) |
|
|
|
configuration = JSON.parse(item.configuration) |
|
|
|
} catch (err) { |
|
|
|
console.log(err) |
|
|
|
} |
|
|
|
return { ...item, demoData, configuration } |
|
|
|
return { tempOnlyId, ...item, demoData, configuration } |
|
|
|
}, |
|
|
|
// 获取用户可用组件列表 |
|
|
|
getCptTypeList () { |
|
|
|
|