mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2026-01-23 08:00:22 +08:00
feat: 增加设置主题色功能
This commit is contained in:
@@ -34,6 +34,9 @@
|
||||
class="i-me:gitee mr-16 cursor-pointer"
|
||||
@click="handleLinkClick('https://gitee.com/isme-admin/vue-naive-admin/tree/2.x')"
|
||||
/>
|
||||
|
||||
<ThemeSetting class="mr-16" />
|
||||
|
||||
<UserAvatar />
|
||||
</div>
|
||||
</AppCard>
|
||||
@@ -56,4 +59,8 @@ const { isFullscreen, toggle } = useFullscreen()
|
||||
function handleLinkClick(link) {
|
||||
window.open(link)
|
||||
}
|
||||
|
||||
watchEffect(() => {
|
||||
appStore.setThemeColor(appStore.primaryColor, appStore.isDark)
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user