Commit bf91a50a authored by littleforest's avatar littleforest

feat: changed theme color of the button

parent 684e20c8
...@@ -5,16 +5,15 @@ const Settings: LayoutSettings & { ...@@ -5,16 +5,15 @@ const Settings: LayoutSettings & {
logo?: string; logo?: string;
} = { } = {
navTheme: 'light', navTheme: 'light',
// 拂晓蓝
primaryColor: '#009B95', primaryColor: '#009B95',
layout: 'mix', layout: 'mix',
contentWidth: 'Fluid', contentWidth: 'Fluid',
fixedHeader: false, fixedHeader: false,
fixSiderbar: true, fixSiderbar: true,
colorWeak: false, colorWeak: false,
title: 'Ant Design Pro',
pwa: false, pwa: false,
logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', logo: '/logo.png',
title: '',
iconfontUrl: '', iconfontUrl: '',
}; };
......
...@@ -6,6 +6,25 @@ ...@@ -6,6 +6,25 @@
@colorMainDefault: #999999; @colorMainDefault: #999999;
@colorMainSubDefault: #666666; @colorMainSubDefault: #666666;
.ant-btn-primary {
color: #fff;
background-color: #009b95;
border-color: #009b95;
border-radius: 2px;
}
:global {
.ant-input:focus,
.ant-input:hover,
.ant-input-focused {
border-color: #009b95;
}
.ant-input:focus,
.ant-input-focused {
box-shadow: 0 0 0 2px #009b95;
}
}
html, html,
body, body,
#root { #root {
......
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
height: 70%; height: 70%;
min-height: 400px; min-height: 400px;
:global(.ant-btn-primary) { :global(.ant-btn-primary) {
background: #009b95;
border: solid 1px #009b95;
border-radius: 2px; border-radius: 2px;
} }
} }
...@@ -98,22 +96,9 @@ ...@@ -98,22 +96,9 @@
box-shadow: 0 2px 8px #f0f1f2; box-shadow: 0 2px 8px #f0f1f2;
.chatWrapper { .chatWrapper {
border-radius: 4px; border-radius: 4px;
:global {
.ant-input:focus,
.ant-input:hover,
.ant-input-focused {
border-color: #009b95;
}
.ant-input:focus,
.ant-input-focused {
box-shadow: 0 0 0 2px #009b95;
}
}
} }
.outputButtonWrapper { .outputButtonWrapper {
:global(.ant-btn-primary) { :global(.ant-btn-primary) {
background: #009b95;
border: solid 1px #009b95;
border-radius: 6px !important; border-radius: 6px !important;
} }
} }
......
...@@ -2,7 +2,6 @@ import { ...@@ -2,7 +2,6 @@ import {
CreatedAccount, CreatedAccount,
getRole, getRole,
getUserMessage, getUserMessage,
postDelete,
postDeleteUser, postDeleteUser,
postResetUser, postResetUser,
} from '@/services/chatGLM/api'; } from '@/services/chatGLM/api';
...@@ -185,10 +184,6 @@ const UserManage = () => { ...@@ -185,10 +184,6 @@ const UserManage = () => {
} }
}; };
const onHandleClickAccountChange = (values: any) => {
console.log(values);
};
const validatePhoneNumber = (_, value: any) => { const validatePhoneNumber = (_, value: any) => {
const phoneNumberRegex = /^1[3456789]\d{9}$/; const phoneNumberRegex = /^1[3456789]\d{9}$/;
if (!value || phoneNumberRegex.test(value)) { if (!value || phoneNumberRegex.test(value)) {
...@@ -326,8 +321,6 @@ const UserManage = () => { ...@@ -326,8 +321,6 @@ const UserManage = () => {
{...layout} {...layout}
form={accountForm} form={accountForm}
onFinish={onHandleClickAccountFinish} onFinish={onHandleClickAccountFinish}
onValuesChange={onHandleClickAccountChange}
labelAlign="right"
name="accountSetting" name="accountSetting"
> >
<Item <Item
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment