暗黑模式

This commit is contained in:
fofolee 2022-04-02 12:26:09 +08:00
parent b976fffb98
commit 18c93af8a3

View File

@ -26,10 +26,20 @@ export default defineComponent({
return; return;
} }
utools.onPluginEnter((enter) => { utools.onPluginEnter((enter) => {
//
this.$q.dark.set(utools.isDarkColors());
//
localStorage["enterData"] = JSON.stringify(enter); localStorage["enterData"] = JSON.stringify(enter);
//
this.$router.push(enter.code); this.$router.push(enter.code);
}); });
}, },
}, },
}); });
</script> </script>
<style>
body.body--dark {
background: #1d1d1d;
}
</style>