From 18c93af8a386c6f65de41b8d0c94837e6653c7a8 Mon Sep 17 00:00:00 2001 From: fofolee Date: Sat, 2 Apr 2022 12:26:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=97=E9=BB=91=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/App.vue b/src/App.vue index 1e5738a..c5d41c9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,10 +26,20 @@ export default defineComponent({ return; } utools.onPluginEnter((enter) => { + // 暗黑模式 + this.$q.dark.set(utools.isDarkColors()); + // 数据传递 localStorage["enterData"] = JSON.stringify(enter); + // 路由跳转 this.$router.push(enter.code); }); }, }, }); + +