mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-29 12:22:44 +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;
|
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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user