mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-29 04:12:45 +08:00
暗黑模式
This commit is contained in:
parent
b976fffb98
commit
18c93af8a3
10
src/App.vue
10
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);
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body.body--dark {
|
||||
background: #1d1d1d;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user