Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
a0671062
Commit
a0671062
authored
Sep 30, 2021
by
邓晓峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 调整菜单图标大小
parent
1b8d8427
Pipeline
#35592
passed with stages
in 57 minutes 19 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
micor.js
config/micor.js
+7
-7
proxy.js
config/proxy.js
+1
-1
BasicLayout1.js
src/layouts/BasicLayout1.js
+1
-1
micro.js
src/micro.js
+4
-1
No files found.
config/micor.js
View file @
a0671062
...
...
@@ -3,15 +3,15 @@ export function genActiveRule(routerPrefix) {
}
export
default
{
dev
:
[
{
name
:
'civ_monitor'
,
entry
:
`//
${
window
.
location
.
hostname
}
:8082/civ_monitor`
,
container
:
'#micro-container'
,
activeRule
:
'/civbase/civ_monitor'
,
},
//
{
//
name: 'civ_monitor',
//
entry: `//${window.location.hostname}:8082/civ_monitor`,
//
container: '#micro-container',
//
activeRule: '/civbase/civ_monitor',
//
},
{
name
:
'civ_water'
,
entry
:
`//
${
window
.
location
.
hostname
}
:808
0
/civ_water`
,
entry
:
`//
${
window
.
location
.
hostname
}
:808
2
/civ_water`
,
container
:
'#micro-container'
,
activeRule
:
'/civbase/civ_water'
,
},
...
...
config/proxy.js
View file @
a0671062
/* eslint-disable */
// const proxyURL = process.env.NODE_ENV !== 'production' ? 'http://192.168.10.150:8777' : window.location.origin;
const
proxyURL
=
'http://1
72.16.10.206:8666
'
;
const
proxyURL
=
'http://1
92.168.10.150:8669
'
;
module
.
exports
=
{
assetsRoot
:
process
.
env
.
NODE_ENV
!==
'production'
?
proxyURL
:
'./'
,
dev
:
{
...
...
src/layouts/BasicLayout1.js
View file @
a0671062
...
...
@@ -506,7 +506,7 @@ const BasicLayout = props => {
<
Tooltip
placement
=
"right"
title
=
{
collapse
?
item
.
name
:
''
}
>
<
a
>
{
item
.
icon
?
item
.
icon
:
item
.
extData
&&
/.svg/
.
test
(
item
.
extData
.
icon
)
?
<
ReactSVG
src
=
{
item
.
extData
.
icon
}
style
=
{{
width
:
'2
2px'
,
height
:
'22
px'
}}
className
=
{
layoutStyles
.
icon
}
/>: item.extData && <img src={item.extData.icon} /
>
item
.
icon
?
item
.
icon
:
item
.
extData
&&
/.svg/
.
test
(
item
.
extData
.
icon
)
?
<
ReactSVG
src
=
{
item
.
extData
.
icon
}
style
=
{{
width
:
'2
0px'
,
height
:
'20
px'
}}
className
=
{
layoutStyles
.
icon
}
/>: item.extData && <img src={item.extData.icon} /
>
}
{
collapse
?
item
.
extData
&&
<
span
>
{(
item
.
extData
.
shortName
||
item
.
name
).
substr
(
0
,
2
)}
<
/span>: <span>{item.name}</
span
>
...
...
src/micro.js
View file @
a0671062
...
...
@@ -43,7 +43,10 @@ export const initMicroApps = (loader, store) => {
entry
:
"//"
+
window
.
location
.
host
+
(
`/
${
item
.
PackageName
}
`
),
container
:
'#micro-container'
,
activeRule
:
genActiveRule
(
`/civbase/
${
item
.
PackageName
}
`
),
props
:
item
.
DefaultSetting
props
:
{
...
item
.
DefaultSetting
,
routerBase
:
item
.
PackageName
}
})
});
const
entrys
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment