1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-15 23:28:16 +09:00
This commit is contained in:
syuilo 2018-02-22 00:14:20 +09:00
parent 9fde555cc3
commit 0c0f822df7
2 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -62,14 +62,18 @@ export default define({
},
methods: {
toggle() {
if (this.props.design == 5) {
if (this.props.view == 5) {
this.props.view = 0;
} else {
this.props.view++;
}
},
func() {
if (this.props.design == 2) {
this.props.design = 0;
} else {
this.props.design++;
}
},
func() {
this.toggle();
}
}
});