Skip to content
Snippets Groups Projects
Commit 0c0f822d authored by syuilo's avatar syuilo
Browse files

wip

parent 9fde555c
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,6 @@ export default function<T extends object>(data: {
}
this.$watch('props', newProps => {
console.log(this.id, newProps);
(this as any).api('i/update_home', {
id: this.id,
data: newProps
......
......@@ -62,14 +62,18 @@ export default define({
},
methods: {
toggle() {
if (this.props.design == 5) {
this.props.design = 0;
if (this.props.view == 5) {
this.props.view = 0;
} else {
this.props.design++;
this.props.view++;
}
},
func() {
this.toggle();
if (this.props.design == 2) {
this.props.design = 0;
} else {
this.props.design++;
}
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment