|
@@ -259,7 +259,6 @@ import PageNumber from "../components/PageNumber";
|
|
|
import CardHeadSample from "../elements/card-head/CardHead";
|
|
|
import TopicSelectDialog from "../components/TopicSelectDialog";
|
|
|
import ElemUndertaking from "../elements/undertaking/ElemUndertaking.vue";
|
|
|
-import timeMixin from "../mixins/timeMixin";
|
|
|
|
|
|
export default {
|
|
|
name: "card-design",
|
|
@@ -278,7 +277,6 @@ export default {
|
|
|
default: true,
|
|
|
},
|
|
|
},
|
|
|
- mixins: [timeMixin],
|
|
|
components: {
|
|
|
CardConfigPropEdit,
|
|
|
TopicElementEdit,
|
|
@@ -321,11 +319,9 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.initCard();
|
|
|
- // this.openAutoSave();
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
this.initState();
|
|
|
- this.clearSetTs();
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations("card", [
|
|
@@ -349,14 +345,6 @@ export default {
|
|
|
"initTopicsFromPages",
|
|
|
"scrollToElementPage",
|
|
|
]),
|
|
|
- openAutoSave() {
|
|
|
- this.clearSetTs();
|
|
|
-
|
|
|
- this.addSetTime(async () => {
|
|
|
- await this.toSave();
|
|
|
- this.openAutoSave();
|
|
|
- }, 2 * 60 * 1000);
|
|
|
- },
|
|
|
async initCard() {
|
|
|
const { cardConfig, pages } = this.content;
|
|
|
this.setCardConfig(cardConfig);
|