权限管理:修复前端导航指向新的接口级权限管理页面
- 修改 Projects.vue 中权限管理按钮导航到新的 /api-permissions 路由 - 前端重新构建以应用 ApiPermissions 组件的最新更改 - 用户点击权限管理按钮现在会进入三标签页面(模块级、接口级、监控) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -14,4 +14,6 @@ COPY alembic /code/alembic
|
|||||||
COPY app /code/app
|
COPY app /code/app
|
||||||
COPY scripts /code/scripts
|
COPY scripts /code/scripts
|
||||||
|
|
||||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
RUN chmod +x /code/scripts/*.py
|
||||||
|
|
||||||
|
CMD sh -c "cd /code && PYTHONPATH=/code alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8000"
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ const resetting = ref(false);
|
|||||||
|
|
||||||
const project = computed(() => studyStore.currentStudy);
|
const project = computed(() => studyStore.currentStudy);
|
||||||
const studyId = computed(() => {
|
const studyId = computed(() => {
|
||||||
const id = route.params.id || route.params.projectId;
|
const id = route.params.id;
|
||||||
return typeof id === "string" ? id : (id as string[])[0];
|
return typeof id === "string" ? id : (id as string[])[0];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ const goSites = (row: Study) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const goPermissions = (row: Study) => {
|
const goPermissions = (row: Study) => {
|
||||||
router.push(`/admin/projects/${row.id}/permissions`);
|
router.push(`/admin/projects/${row.id}/api-permissions`);
|
||||||
};
|
};
|
||||||
|
|
||||||
const goAuditLogs = async (row: Study) => {
|
const goAuditLogs = async (row: Study) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user