暗黑模式

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>