Skip to content

Commit

Permalink
refactor: 消息通知开关变量位置调整
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 2074
  • Loading branch information
luofann committed Jan 19, 2024
1 parent 65b81fd commit 2eff9a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bcs-services/bcs-bscp/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
var BK_IAM_HOST = '{{ .BK_IAM_HOST }}'
var BK_CC_HOST = '{{ .BK_CC_HOST }}'
var HELPER = '{{ .HELPER }}'
var ENABLE_BK_NOTICE = '{{ .ENABLE_BK_NOTICE }}'
window.BSCP_CONFIG = JSON.parse('{{ .BK_BSCP_CONFIG }}')
</script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion bcs-services/bcs-bscp/ui/src/store/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineStore('global', () => {
const spaceFeatureFlags = ref<{ [key: string]: boolean; }>({}); // 空间的配置开关
const spaceList = ref<ISpaceDetail[]>([]);
// @ts-ignore
const showNotice = ref(window.BSCP_CONFIG.ENABLE_BK_NOTICE || false); // 是否展示消息通知
const showNotice = ref(window.ENABLE_BK_NOTICE === 'true'); // 是否展示消息通知
const showApplyPermDialog = ref(false); // 资源无权限申请弹窗
const showPermApplyPage = ref(false); // 无业务查看权限时,申请页面
const applyPermUrl = ref(''); // 跳转到权限中心的申请链接
Expand Down

0 comments on commit 2eff9a3

Please sign in to comment.