Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d7294610
authored
May 06, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:租户禁用后,还展示了“租户切换权限”的按钮
parent
a5f17a9f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/layout/components/ToolHeader.vue
+3
-1
No files found.
src/layout/components/ToolHeader.vue
View file @
d7294610
...
@@ -44,7 +44,9 @@ const locale = computed(() => appStore.getLocale)
...
@@ -44,7 +44,9 @@ const locale = computed(() => appStore.getLocale)
const
message
=
computed
(()
=>
appStore
.
getMessage
)
const
message
=
computed
(()
=>
appStore
.
getMessage
)
// 租户切换权限
// 租户切换权限
const
hasTenantVisitPermission
=
computed
(()
=>
checkPermi
([
'system:tenant:visit'
]))
const
hasTenantVisitPermission
=
computed
(
()
=>
import
.
meta
.
env
.
VITE_APP_TENANT_ENABLE
===
'true'
&&
checkPermi
([
'system:tenant:visit'
])
)
export
default
defineComponent
({
export
default
defineComponent
({
name
:
'ToolHeader'
,
name
:
'ToolHeader'
,
...
...
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