mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Fix bug
This commit is contained in:
parent
96c42264be
commit
f0fbeaa8ac
1 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ export default (callback: (launch: (router: VueRouter, api?: (os: MiOS) => API)
|
||||||
data() {
|
data() {
|
||||||
_unwatchDarkmode_: null
|
_unwatchDarkmode_: null
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
const apply = v => {
|
const apply = v => {
|
||||||
if (this.$el.setAttribute == null) return;
|
if (this.$el.setAttribute == null) return;
|
||||||
if (v) {
|
if (v) {
|
||||||
|
@ -114,7 +114,7 @@ export default (callback: (launch: (router: VueRouter, api?: (os: MiOS) => API)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$nextTick(() => apply(os.store.state.device.darkmode));
|
apply(os.store.state.device.darkmode);
|
||||||
|
|
||||||
this._unwatchDarkmode_ = os.store.watch(s => {
|
this._unwatchDarkmode_ = os.store.watch(s => {
|
||||||
return s.device.darkmode;
|
return s.device.darkmode;
|
||||||
|
|
Loading…
Add table
Reference in a new issue