chore(frontend): clarify namespace auto binding prompts

This commit is contained in:
mac
2026-07-22 15:01:57 +08:00
parent d150d0f0dd
commit c8762619fb
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
<div class="page-head">
<div>
<h2>业务线管理</h2>
<p>平台管理员维护全局业务线</p>
<p>新增时自动查找或创建同名 namespace,并完成业务线绑定</p>
</div>
</div>
@@ -105,7 +105,7 @@ async function createBusinessLine() {
newName.value = ''
await loadAllBusinessLines()
await businessLineStore.loadMine()
ElMessage.success('已新增业务线')
ElMessage.success('已新增业务线,并完成同名 namespace 绑定')
} catch (error) {
ElMessage.error(error instanceof Error ? error.message : '新增业务线失败')
} finally {
@@ -231,7 +231,7 @@ const operatorStateText = computed(() => {
})
const operatorStateDetail = computed(() => {
if (!canManageBusinessLine.value) return '需要平台管理员或当前业务线管理员'
if (!wayneNamespaces.value.length) return '先在业务线分配中绑定 Wayne namespace'
if (!wayneNamespaces.value.length) return '新增业务线会自动绑定同名 namespace,也可在业务线分配中手动绑定'
if (!hasWayneRoleBindingPermission.value) return '没有 Wayne 角色绑定权限'
return `${wayneNamespaces.value.filter((item) => item.can_bind).length} 个 namespace 可授权`
})