Merge remote-tracking branch 'origin/frame' into dev

frame-financialTax-yjl-1204
lijingjia 2 weeks ago
commit ba170893b4

@ -5,9 +5,9 @@
*/ */
import { generate } from '@ant-design/colors'; import { generate } from '@ant-design/colors';
export const primaryColor = '#257AFA'; export const primaryColor = '#FF6600';
export const darkMode = 'light'; export const darkMode = 'black';
type Fn = (...arg: any) => any; type Fn = (...arg: any) => any;

@ -3,13 +3,12 @@
* @Author: lijj * @Author: lijj
* @Date: 2024-07-17 08:39:50 * @Date: 2024-07-17 08:39:50
--> -->
<!--
* @Author: Vben
* @Description: logo component
-->
<template> <template>
<div class="anticon" @click="goHome"> <div class="anticon" @click="goHome">
<img v-if="showTitle" style="margin: 10px 18px; height: 40px; width: 160px;" :src="getDarkMode == 'white' ? '/src/assets/images/logob.png' : '/src/assets/images/logoh.png'" /> <span v-if="showTitle">
<img v-if="getDarkMode == 'white'" style="margin: 10px 18px; height: 40px; width: 160px;" src="../../../assets/images/logob.png" />
<img v-else style="margin: 10px 18px; height: 40px; width: 160px;" src="../../../assets/images/logoh.png" />
</span>
<img v-else style="width: 32px; height: 32px; margin: 16px 7px;" src="../../../assets/images/logo1.png" /> <img v-else style="width: 32px; height: 32px; margin: 16px 7px;" src="../../../assets/images/logo1.png" />
<!-- <div v-show="showTitle" class="ml-2 truncate md:opacity-100" :class="getTitleClass"> <!-- <div v-show="showTitle" class="ml-2 truncate md:opacity-100" :class="getTitleClass">
{{ title }} {{ title }}
@ -40,7 +39,6 @@
*/ */
alwaysShowTitle: { type: Boolean }, alwaysShowTitle: { type: Boolean },
}) })
const { prefixCls } = useDesign('app-logo') const { prefixCls } = useDesign('app-logo')
const { getCollapsedShowTitle } = useMenuSetting() const { getCollapsedShowTitle } = useMenuSetting()
const userStore = useUserStore() const userStore = useUserStore()

@ -17,7 +17,7 @@
// } // }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background-color: rgb(0 0 0 / 5%); background-color: #F0F2F5!important;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {

@ -17,6 +17,9 @@ export enum ContentEnum {
export enum ThemeEnum { export enum ThemeEnum {
DARK = 'dark', DARK = 'dark',
LIGHT = 'light', LIGHT = 'light',
BLACK = 'black',
BLUE = 'blue',
WHITE = 'white'
} }
export enum SettingButtonPositionEnum { export enum SettingButtonPositionEnum {

@ -8,6 +8,12 @@ import { useUserStoreWithOut } from '/@/store/modules/user'
import { PAGE_NOT_FOUND_ROUTE } from '/@/router/routes/basic' import { PAGE_NOT_FOUND_ROUTE } from '/@/router/routes/basic'
import { RootRoute } from '/@/router/routes' import { RootRoute } from '/@/router/routes'
import { useRootSetting } from '/@/hooks/setting/useRootSetting'
const { getDarkMode, setDarkMode } = useRootSetting()
// 设置默认主题
if (getDarkMode.value === 'light') {
setDarkMode('black')
}
const LOGIN_PATH = PageEnum.BASE_LOGIN const LOGIN_PATH = PageEnum.BASE_LOGIN

Loading…
Cancel
Save