fix(app): 恢复配置按钮——管理范围内已装(含非本公司)也显示配置入口,不再依赖 isAppUsable

This commit is contained in:
TermiNexus committed 2026-08-13 08:36:52 +08:00
1 parent eb0df83267
commit e1f43efc74
1 file changed
+2 -2
+2 -2
View File
@@ -307,7 +307,7 @@ onMounted(loadMarket)
<el-button v-if="isAppUsable(a)" size="small" type="primary" plain @click="openApp(a)">打开</el-button>
<!-- 企业功能:管理员安装/管理(公司级);普通用户提示 -->
<template v-if="a.AppType === 'enterprise'">
<el-button v-if="isAdmin && isAppUsable(a)" size="small" type="info" plain @click="openConfig(a)">配置</el-button>
<el-button v-if="isAdmin && (isAppUsable(a) || hasManageableInstall(a))" size="small" type="info" plain @click="openConfig(a)">配置</el-button>
<el-button v-if="isAdmin" size="small" type="primary"
:plain="hasManageableInstall(a)" @click="toggleInstall(a)">
{{ hasManageableInstall(a) ? '管理' : '安装' }}
@@ -328,7 +328,7 @@ onMounted(loadMarket)
<!-- 混合:管理员可安装/管理,个人可启用 -->
<template v-else>
<template v-if="isAdmin">
<el-button v-if="isAppUsable(a)" size="small" type="info" plain @click="openConfig(a)">配置</el-button>
<el-button v-if="isAppUsable(a) || hasManageableInstall(a)" size="small" type="info" plain @click="openConfig(a)">配置</el-button>
<el-button size="small" type="primary"
:plain="hasManageableInstall(a)" @click="toggleInstall(a)">
{{ hasManageableInstall(a) ? '管理' : '安装' }}