|
@@ -78,8 +78,8 @@ export const store = EditorModule.store({
|
|
|
return compId;
|
|
|
},
|
|
|
setCurrComp(compId: string) {
|
|
|
- this.store.currCompId = compId;
|
|
|
this.store.currStreamCardId = "";
|
|
|
+ this.store.currCompId = compId;
|
|
|
|
|
|
const find = (objs: string[], id: string): boolean => {
|
|
|
if (!objs || objs.length < 1) return false;
|
|
@@ -114,12 +114,6 @@ export const store = EditorModule.store({
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- console.log(
|
|
|
- "streamCard=>",
|
|
|
- this.store.currStreamCardId,
|
|
|
- "compId=>",
|
|
|
- this.store.currCompId
|
|
|
- );
|
|
|
},
|
|
|
|
|
|
deleteComp(compId: string) {
|
|
@@ -150,10 +144,6 @@ export const store = EditorModule.store({
|
|
|
const { pageCompIds } = this.store;
|
|
|
const [selComp] = pageCompIds.splice(selIndex, 1);
|
|
|
pageCompIds.splice(targetIndex, 0, selComp);
|
|
|
-
|
|
|
- // const currStreamCardId = this.store.currStreamCardId;
|
|
|
- // this.store.setCurrComp("")
|
|
|
- // this.store.currStreamCardId = currStreamCardId;
|
|
|
},
|
|
|
setTextEditingState(state: boolean) {
|
|
|
this.store.textEditingState = state;
|