mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-27 11:43:25 +08:00
feat:完成文章模块权限、抽取权限逻辑、修复超管权限
This commit is contained in:
@@ -160,10 +160,11 @@ const loadDiscussList = async () => {
|
||||
};
|
||||
|
||||
//进入添加主题页面
|
||||
const { isHasPermission } = getPermission("bbs:discuss:add");
|
||||
const isEditArticle = computed(
|
||||
() => isHasPermission && !(route.params.isPublish === "false" ? false : true)
|
||||
const { isHasPermission: isEditArticle } = getPermission(
|
||||
"bbs:discuss:add",
|
||||
route.params.isPublish === "false" ? false : true
|
||||
);
|
||||
|
||||
const enterEditArticle = () => {
|
||||
if (isEditArticle.value) {
|
||||
//跳转路由
|
||||
|
||||
Reference in New Issue
Block a user