Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
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
wuhao
ems3.3
Commits
b6ae7e46
Commit
b6ae7e46
authored
2 years ago
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
19
parent
9a68e5d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
proxy.js
config/proxy.js
+2
-1
index.jsx
src/components/PremButton/index.jsx
+2
-2
No files found.
config/proxy.js
View file @
b6ae7e46
...
...
@@ -13,7 +13,8 @@ export default {
dev
:
{
[
defaultSetting
.
proxypath
]:
{
// 要代理的地址
target
:
'http://192.168.40.64:28000'
,
//jf哥
target
:
'http://192.168.40.64:28001'
,
//jf哥
// target: 'http://192.168.40.64:28000', //gc哥
// target: 'http://192.168.40.203:8000', //dj哥
changeOrigin
:
true
,
},
...
...
This diff is collapsed.
Click to expand it.
src/components/PremButton/index.jsx
View file @
b6ae7e46
...
...
@@ -4,11 +4,11 @@ import { useModel } from '@umijs/max';
function
PremButton
(
props
)
{
const
{
initialState
,
setInitialState
}
=
useModel
(
'@@initialState'
);
let
buttonPerm
=
initialState
.
newMenu
.
buttonPerm
;
let
buttonPerm
=
initialState
?.
newMenu
?
.
buttonPerm
;
const
{
children
,
btn
,
pop
,
access
}
=
props
;
let
res
=
buttonPerm
&&
buttonPerm
.
length
>
0
?
buttonPerm
.
filter
((
it
)
=>
it
.
typeName
==
access
&&
it
.
show
==
1
)
?
buttonPerm
?
.
filter
((
it
)
=>
it
.
typeName
==
access
&&
it
.
show
==
1
)
:
[];
let
accesses
=
access
?
res
.
map
((
it
)
=>
it
.
typeName
).
includes
(
access
)
:
true
;
//配置按钮权限接口
...
...
This diff is collapsed.
Click to expand it.
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