mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-05 10:18:09 +09:00
wip
This commit is contained in:
parent
f918081168
commit
d8cd24fab0
@ -1,5 +1,3 @@
|
|||||||
import * as merge from 'object-assign-deep';
|
|
||||||
|
|
||||||
import Stream from './stream';
|
import Stream from './stream';
|
||||||
import StreamManager from './stream-manager';
|
import StreamManager from './stream-manager';
|
||||||
import MiOS from '../../../mios';
|
import MiOS from '../../../mios';
|
||||||
|
@ -147,7 +147,7 @@ export default Vue.extend({
|
|||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
home(): any[] {
|
home(): any[] {
|
||||||
return this.$store.state.settings.home;
|
return this.$store.state.settings.home || [];
|
||||||
},
|
},
|
||||||
left(): any[] {
|
left(): any[] {
|
||||||
return this.home.filter(w => w.place == 'left');
|
return this.home.filter(w => w.place == 'left');
|
||||||
@ -164,9 +164,11 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
if (this.$store.state.i.clientSettings == null || this.$store.state.i.clientSettings.home == null) {
|
if (this.$store.state.settings.home == null) {
|
||||||
this.api('i/update_home', {
|
this.api('i/update_home', {
|
||||||
home: _defaultDesktopHomeWidgets
|
home: _defaultDesktopHomeWidgets
|
||||||
|
}).then(() => {
|
||||||
|
this.$store.commit('settings/setHome', _defaultDesktopHomeWidgets);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -5,7 +5,7 @@ import MiOS from './mios';
|
|||||||
import { hostname } from './config';
|
import { hostname } from './config';
|
||||||
|
|
||||||
const defaultSettings = {
|
const defaultSettings = {
|
||||||
home: [],
|
home: null,
|
||||||
mobileHome: [],
|
mobileHome: [],
|
||||||
deck: {
|
deck: {
|
||||||
columns: [/*{
|
columns: [/*{
|
||||||
|
Loading…
Reference in New Issue
Block a user