Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
CivManage
Commits
ee7ce483
Commit
ee7ce483
authored
May 12, 2023
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复老环境产品配置web4功能报错
parent
4d98dcf0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
HomeConfigModal.jsx
...es/productCenter/webConfig/components/HomeConfigModal.jsx
+4
-1
siteConfigDrawer.js
...es/productCenter/webConfig/components/siteConfigDrawer.js
+4
-1
AddForm.jsx
src/pages/productCenter/webConfig/menuconfig/AddForm.jsx
+1
-1
editForm.jsx
src/pages/productCenter/webConfig/menuconfig/editForm.jsx
+1
-1
No files found.
src/pages/productCenter/webConfig/components/HomeConfigModal.jsx
View file @
ee7ce483
...
...
@@ -52,7 +52,10 @@ const HomeConfigModal = props => {
obj
.
productType
=
product
?.
PackageName
||
'civweb4'
;
let
proList
=
JSON
.
parse
(
JSON
.
stringify
(
productList
));
proList
.
push
({
PackageName
:
'civ_base'
});
if
(
!
proList
.
some
(
item
=>
item
.
PackageName
===
obj
.
productType
))
{
if
(
!
proList
.
some
(
item
=>
item
.
PackageName
===
obj
.
productType
)
&&
obj
.
productType
!==
'civweb4'
)
{
message
.
error
(
`
${
obj
.
productType
}
未授权,不能使用该功能当主页`
);
return
;
}
...
...
src/pages/productCenter/webConfig/components/siteConfigDrawer.js
View file @
ee7ce483
...
...
@@ -283,7 +283,10 @@ export default props => {
validate
.
productType
=
product
?.
PackageName
||
'civweb4'
;
let
proList
=
JSON
.
parse
(
JSON
.
stringify
(
productList
));
proList
.
push
({
PackageName
:
'civ_base'
});
if
(
!
proList
.
some
(
item
=>
item
.
PackageName
===
validate
.
productType
))
{
if
(
!
proList
.
some
(
item
=>
item
.
PackageName
===
validate
.
productType
)
&&
validate
.
productType
!==
'civweb4'
)
{
message
.
error
(
`
${
validate
.
productType
}
未授权,不能使用该功能当主页`
);
return
;
}
...
...
src/pages/productCenter/webConfig/menuconfig/AddForm.jsx
View file @
ee7ce483
...
...
@@ -48,7 +48,7 @@ const AddForm = props => {
obj
.
product
=
product
?.
PackageName
||
'civweb4'
;
let
proList
=
JSON
.
parse
(
JSON
.
stringify
(
productList
));
proList
.
push
({
PackageName
:
'civ_base'
});
if
(
!
proList
.
some
(
item
=>
item
.
PackageName
===
obj
.
product
))
{
if
(
!
proList
.
some
(
item
=>
item
.
PackageName
===
obj
.
product
)
&&
obj
.
product
!==
'civweb4'
)
{
message
.
error
(
`
${
obj
.
product
}
未授权,不能使用该功能`
);
return
;
}
...
...
src/pages/productCenter/webConfig/menuconfig/editForm.jsx
View file @
ee7ce483
...
...
@@ -170,7 +170,7 @@ const EditForm = props => {
let
proList
=
JSON
.
parse
(
JSON
.
stringify
(
productList
));
proList
.
push
({
PackageName
:
'civ_base'
});
if
(
!
proList
.
some
(
item
=>
item
.
PackageName
===
obj
.
product
))
{
if
(
!
proList
.
some
(
item
=>
item
.
PackageName
===
obj
.
product
)
&&
obj
.
product
!==
'civweb4'
)
{
message
.
error
(
`
${
obj
.
product
}
未授权,不能使用该功能`
);
return
;
}
...
...
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