diff --git a/src/assets/images/company_logo_with_name.png b/src/assets/images/company_logo_with_name.png new file mode 100644 index 0000000..893733d Binary files /dev/null and b/src/assets/images/company_logo_with_name.png differ diff --git a/src/assets/images/company_name.png b/src/assets/images/company_name.png new file mode 100644 index 0000000..9098a56 Binary files /dev/null and b/src/assets/images/company_name.png differ diff --git a/src/assets/images/image.png b/src/assets/images/image.png new file mode 100644 index 0000000..4078c60 Binary files /dev/null and b/src/assets/images/image.png differ diff --git a/src/assets/images/logo.png b/src/assets/images/logo.png index 81f5a24..dd546b1 100644 Binary files a/src/assets/images/logo.png and b/src/assets/images/logo.png differ diff --git a/src/assets/images/logowithtext.png b/src/assets/images/logowithtext.png deleted file mode 100644 index d6d84d2..0000000 Binary files a/src/assets/images/logowithtext.png and /dev/null differ diff --git a/src/layout/header/components/setting/constant.ts b/src/constants/theme.ts similarity index 61% rename from src/layout/header/components/setting/constant.ts rename to src/constants/theme.ts index 21d3285..94050f0 100644 --- a/src/layout/header/components/setting/constant.ts +++ b/src/constants/theme.ts @@ -1,3 +1,4 @@ +import { type LayoutSetting } from '@/store/modules/layoutSetting'; import { theme } from 'ant-design-vue'; const { defaultAlgorithm, darkAlgorithm } = theme; @@ -24,13 +25,28 @@ export const themeColor = { realDark: darkAlgorithm, } as const; export type ThemeColor = keyof typeof themeColor; - +export const defaultSetting: LayoutSetting = { + navTheme: 'light', // theme for nav menu + colorPrimary: '#deae35', // '#F5222D', // primary color of ant design + layout: 'sidemenu', // nav menu position: `sidemenu` or `topmenu` + contentWidth: 'Fluid', // layout of content: `Fluid` or `Fixed`, only works when layout is topmenu + fixedHeader: false, // sticky header + fixSiderbar: false, // sticky siderbar + colorWeak: false, + menu: { + locale: true, + }, + title: 'vite-antdv-admin', + pwa: false, + iconfontUrl: '', + // production: process.env.NODE_ENV === 'production' && process.env.VUE_APP_PREVIEW !== 'true', +}; /** 主题色 */ export const themeColors = [ { - title: '华信蓝(默认)', - key: 'techBlue', - value: '#2a71b9', + title: '山矿主题(默认)', + key: 'primary', + value: defaultSetting.colorPrimary, }, { title: '薄暮', diff --git a/src/layout/header/components/setting/index.vue b/src/layout/header/components/setting/index.vue index dc179a3..79c9871 100644 --- a/src/layout/header/components/setting/index.vue +++ b/src/layout/header/components/setting/index.vue @@ -1,24 +1,30 @@ - -