Commit 0d93bba9 authored by web's avatar web

antd兼容、滚动条隐藏

parent 937348bb
No preview for this file type
...@@ -2,7 +2,13 @@ ...@@ -2,7 +2,13 @@
text-align: center; text-align: center;
position: relative; position: relative;
} }
::-webkit-scrollbar {
display: none;
}
* {
scrollbar-width: none;
}
.App-logo { .App-logo {
height: 40vmin; height: 40vmin;
pointer-events: none; pointer-events: none;
......
...@@ -7,6 +7,7 @@ import './assets/fonts/fonts.scss' ...@@ -7,6 +7,7 @@ import './assets/fonts/fonts.scss'
import './index.css'; import './index.css';
import './App.css'; import './App.css';
import './styles.scss' import './styles.scss'
import { StyleProvider } from '@ant-design/cssinjs';
import { LoginProvider } from './context/LoginContext'; import { LoginProvider } from './context/LoginContext';
function App() { function App() {
...@@ -15,6 +16,7 @@ function App() { ...@@ -15,6 +16,7 @@ function App() {
const targetAdminHost = hostname !== 'localhost' ? 'https://console.' + host : 'http://' + host const targetAdminHost = hostname !== 'localhost' ? 'https://console.' + host : 'http://' + host
return ( return (
<div className="App"> <div className="App">
<StyleProvider hashPriority="high">
<ConfigProvider <ConfigProvider
theme={ theme={
{ {
...@@ -55,8 +57,7 @@ function App() { ...@@ -55,8 +57,7 @@ function App() {
</LoginProvider> </LoginProvider>
</Router> </Router>
</ConfigProvider> </ConfigProvider>
</StyleProvider>
</div> </div>
); );
} }
......
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