Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
linweijiong
jinfa-admin
Commits
6a24b20d
Commit
6a24b20d
authored
Jul 21, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge: 解决冲突
parent
f366e594
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
index.tsx
src/components/AuthButton/index.tsx
+3
-11
No files found.
src/components/AuthButton/index.tsx
View file @
6a24b20d
...
...
@@ -17,10 +17,9 @@ const AuthButton = (props: AuthButtonProps) => {
}
=
props
const
userBtn
=
require
(
'../../../config/router.config.json'
)
const
path
=
menuCode
.
split
(
"."
)[
0
];
<
<<<<<<
HEAD
let
AuthRoutes
=
userBtn
.
filter
((
item
:
any
)
=
>
item.path === `/$
{
path
}
`);
let AuthButton = AuthRoutes[0].routes;
let AuthCode: any = [];
const
AuthRoutes
=
userBtn
.
filter
((
item
:
any
)
=>
item
.
path
===
`/
${
path
}
`
);
const
AuthButton
=
AuthRoutes
[
0
].
routes
;
const
AuthCode
:
any
=
[];
for
(
let
i
=
0
;
i
<
AuthButton
.
length
;
i
++
)
{
if
(
AuthButton
[
i
].
btns
.
length
!=
0
)
{
for
(
let
j
=
0
;
j
<
AuthButton
[
i
].
btns
.
length
;
j
++
)
{
...
...
@@ -29,13 +28,6 @@ const AuthButton = (props: AuthButtonProps) => {
break
;
}
}
=======
const
AuthButton
=
userBtn
.
filter
((
item
:
any
)
=
>
item.path === `/$
{
path
}
`);
const AuthUrl = AuthButton[0].routes.filter((item: any) =
>
item.path === "/commodity/productWillCheck")
AuthUrl[0].btn = [
{
btnCode
:
'commodity.productWillCheck1'
,
>>>>>>>
12
bba00593096a8c67d8a47bdffaac8cf09b1daa
}
}
console
.
log
(
AuthCode
,
'AuthCode'
);
...
...
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