优化桌面端标签导航与后台交互
Client Quality Gates / Shared client and Web (push) Has been cancelled
Client Quality Gates / macOS Desktop (push) Has been cancelled

This commit is contained in:
Cheng Zhou
2026-07-09 08:56:13 +08:00
parent 76f2d9f22a
commit 0aff10fe0d
17 changed files with 1232 additions and 207 deletions
+5 -2
View File
@@ -32,7 +32,6 @@ import DrugShipments from "../views/ia/DrugShipments.vue";
import ShipmentDetail from "../views/drug/ShipmentDetail.vue";
import MaterialEquipment from "../views/ia/MaterialEquipment.vue";
import MaterialEquipmentDetail from "../views/materials/MaterialEquipmentDetail.vue";
import FileVersionManagement from "../views/ia/FileVersionManagement.vue";
import DocumentList from "../views/documents/DocumentList.vue";
import DocumentDetail from "../views/documents/DocumentDetail.vue";
import StartupFeasibilityEthics from "../views/ia/StartupFeasibilityEthics.vue";
@@ -164,7 +163,7 @@ const routes: RouteRecordRaw[] = [
{
path: "file-versions",
name: "FileVersionManagement",
component: FileVersionManagement,
component: DocumentList,
meta: { title: TEXT.menu.fileVersionManagement, requiresStudy: true },
},
{
@@ -610,6 +609,10 @@ router.beforeEach(async (to, _from, next) => {
return;
}
}
if (to.name === "FileVersionManagement" && studyStore.currentStudy?.id) {
next({ name: "DocumentList", params: { trialId: studyStore.currentStudy.id }, replace: true });
return;
}
if (to.meta.adminProjectPermission) {
const allowed = await ensureAdminProjectAccess(to, isAdmin).catch(() => false);
if (!allowed) {