update: uni-cms-articles.schema.ext.js

This commit is contained in:
chenruilong 2024-06-25 20:34:40 +08:00
parent c8755e461c
commit 471019c764

View File

@ -180,6 +180,10 @@ module.exports = {
throw new Error('请在 uni-cms 配置文件中配置 clientAppIds 字段后访问详见https://uniapp.dcloud.net.cn/uniCloud/uni-cms.html#uni-cms-config')
}
if (isAdmin && config.clientAppIds && config.clientAppIds.includes(clientInfo.appId)) {
throw new Error('uni-cms 配置文件中的 clientAppIds 字段请勿添加管理端的 appid请移除后重试')
}
// 如果clientAppIds字段未配置或当前appId不在clientAppIds中则返回
if (!config.clientAppIds || !config.clientAppIds.includes(clientInfo.appId)) return