This commit is contained in:
PC-202306242200\Administrator
2024-09-20 16:23:00 +08:00
parent 7d2f597082
commit 43e4dfa700
6 changed files with 39 additions and 38 deletions

View File

@@ -84,8 +84,8 @@ export default defineConfig({
},
define: {
'process.env': {
API_URL: "https://iadminapi.zhongshuai2023.com",
// API_URL: "http://192.168.1.54:1002",
// API_URL: "https://iadminapi.zhongshuai2023.com",
API_URL: "http://192.168.1.54:1002",
WS_URL: "ws://lv.com",
STATIC_URL: "http://lv.com",
WEMAP_KEY: 'ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X'

2
dist/index.html vendored
View File

@@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script src="/umi.8c3944af.js"></script>
<script src="/umi.be584f3c.js"></script>
</body></html>

File diff suppressed because one or more lines are too long

View File

@@ -177,7 +177,7 @@ const RoleTableList: React.FC = () => {
toolBarRender={() => [
<Button
type="primary"
key="add"
hidden={!access.hasPerms('/api/sys/role/add')}
onClick={async () => {
setCurrentRow(undefined);
setModalVisible(true);

View File

@@ -38,5 +38,6 @@ export const childrenRemove = (data: Item[] | undefined): Item[] => {
list.push(i);
}
});
return list.sort((a, b) => (a.orderNum === 0 ? -1 : b.orderNum === 0 ? 1 : a.orderNum - b.orderNum));
// .sort((a, b) => (a.orderNum === 0 ? -1 : b.orderNum === 0 ? 1 : a.orderNum - b.orderNum));
return list
};