Skip to content

Commit

Permalink
optimization: 支持业务插件自由选择业务
Browse files Browse the repository at this point in the history
  • Loading branch information
ywywZhou authored and luofann committed Dec 5, 2023
1 parent 8c4d858 commit 2d82358
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/desktop/src/config/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ export const setConfigContext = (site_url, project) => {
return ''
},
canSelectBiz () { // 是否可以选择业务
if ($.context.project) {
return !$.context.project.from_cmdb
const { project } = $.context
if (project) {
return project.allow_plugin_cross_biz || !project.from_cmdb
}
return true
},
Expand Down

0 comments on commit 2d82358

Please sign in to comment.