mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-19 20:45:37 +08:00
【新增】部署类型七牛云oss、七牛云cdn、百度cdn、腾讯waf、腾讯edgeone、阿里云waf
【新增】解析类型godaddy 【新增】自定义CA授权管理 【调整】优化部署流程,减少代码冗余,提升类型添加效率
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { computed, ref, effectScope, onScopeDispose, watch } from 'vue'
|
||||
import { useDark, useLocalStorage } from '@vueuse/core'
|
||||
import { useLocalStorage } from '@vueuse/core'
|
||||
import { darkTheme, lightTheme, useThemeVars } from 'naive-ui'
|
||||
import themes from './model'
|
||||
|
||||
@@ -131,16 +131,12 @@ export const useTheme = (name?: ThemeName) => {
|
||||
// 加载主题样式
|
||||
const themeConfig = await themeItem.import()
|
||||
const themeStyles = await themeItem.styleContent() // 获取主题样式内容
|
||||
|
||||
// 加载新样式
|
||||
if (themeStyles || themeStyles) {
|
||||
loadDynamicCss(themeStyles as string, 'theme-style')
|
||||
}
|
||||
// 更新激活的主题
|
||||
themeActiveOverrides.value = themeConfig
|
||||
|
||||
console.log('themeActiveOverrides', themeActiveOverrides.value)
|
||||
console.log('themeOverrides', themeOverrides.value)
|
||||
} catch (error) {
|
||||
console.error(`加载主题失败 ${themeName}:`, error)
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ const defaultLight: ThemeTemplate = {
|
||||
title: '默认亮色主题', // 主题名称
|
||||
themeOverrides: {
|
||||
common: {
|
||||
// borderRadius: '0.6rem', // 圆角
|
||||
borderRadius: '0.6rem', // 圆角
|
||||
// primaryColor: '#4caf50', // 主色
|
||||
// primaryColorHover: '#20a53a', // 主色悬停
|
||||
// primaryColorPressed: '#157f3a', // 主色按下
|
||||
@@ -32,6 +32,7 @@ const defaultDark: ThemeTemplate = {
|
||||
title: '默认暗色主题',
|
||||
themeOverrides: {
|
||||
common: {
|
||||
borderRadius: '0.6rem', // 圆角
|
||||
// baseColor: '#F1F1F1', // 基础色
|
||||
// primaryColor: '#4caf50', // 主色
|
||||
// primaryColorHover: '#20a53a', // 主色悬停
|
||||
|
||||
Reference in New Issue
Block a user