mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 14:04:28 +00:00
Merge branch 'polyfill/vision' of gitlab.alibaba-inc.com:ali-lowcode/ali-lowcode-engine into polyfill/vision
This commit is contained in:
commit
73a5efe8e1
@ -10,7 +10,18 @@ const SamplePreview = ({ editor }: PluginProps) => {
|
|||||||
if (designer) {
|
if (designer) {
|
||||||
console.info('save schema:', designer.schema);
|
console.info('save schema:', designer.schema);
|
||||||
localStorage.setItem('lce-dev-store', JSON.stringify(designer.schema));
|
localStorage.setItem('lce-dev-store', JSON.stringify(designer.schema));
|
||||||
|
fetch('http://30.5.157.206:3000/legao/save.json', {
|
||||||
|
method: 'POST',
|
||||||
|
body: JSON.stringify(designer.schema),
|
||||||
|
headers: new Headers({
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
}),
|
||||||
|
mode: 'cors',
|
||||||
|
})
|
||||||
|
.then((res) => res.json())
|
||||||
|
.then(() => {
|
||||||
window.open('http://30.5.157.206:3333/', 'preview');
|
window.open('http://30.5.157.206:3333/', 'preview');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user