|
@@ -337,10 +337,12 @@ const selectedSreen = (item: any) => {
|
|
};
|
|
};
|
|
|
|
|
|
const fileSuccessed = async (content: any) => {
|
|
const fileSuccessed = async (content: any) => {
|
|
- meta2d.store.patchFlagsBackground = true;
|
|
|
|
|
|
+ // meta2d.store.patchFlagsBackground = true;
|
|
meta2d.setBackgroundImage(content.response.url);
|
|
meta2d.setBackgroundImage(content.response.url);
|
|
- meta2d.store.patchFlagsBackground = true;
|
|
|
|
- meta2d.render();
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ meta2d.store.patchFlagsBackground = true;
|
|
|
|
+ meta2d.render();
|
|
|
|
+ }, 1000);
|
|
};
|
|
};
|
|
|
|
|
|
const fileRemoved = () => {
|
|
const fileRemoved = () => {
|
|
@@ -353,6 +355,9 @@ const fileRemoved = () => {
|
|
const changeValue = (e: any, key: string) => {
|
|
const changeValue = (e: any, key: string) => {
|
|
// @ts-ignore
|
|
// @ts-ignore
|
|
meta2d.store.data[key] = e;
|
|
meta2d.store.data[key] = e;
|
|
|
|
+ if (key === 'background') {
|
|
|
|
+ meta2d.store.patchFlagsBackground = true;
|
|
|
|
+ }
|
|
meta2d.render();
|
|
meta2d.render();
|
|
openData();
|
|
openData();
|
|
};
|
|
};
|