mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 13:03:30 +08:00
暗黑模式
This commit is contained in:
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>
|
||||
|
Reference in New Issue
Block a user