From 5c35d26c03b49303600b861c39c435c8e9461e4d Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: 星期五, 01 七月 2022 18:12:41 +0800
Subject: [PATCH] 添加页面

---
 src/router/backEnd.ts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/router/backEnd.ts b/src/router/backEnd.ts
index 5cb3d0d..c109d30 100644
--- a/src/router/backEnd.ts
+++ b/src/router/backEnd.ts
@@ -29,7 +29,7 @@
 export async function initBackEndControlRoutes() {
 	if (window.nextLoading === undefined) NextLoading.start();
 	if (!Session.get('token')) return false;
-	const res = await getBackEndControlRoutes(Session.get('projectId'));
+	const res = await getBackEndControlRoutes(Session.get('projectId') === null ? '' : Session.get('projectId'));
 	useRequestOldRoutes().setRequestOldRoutes(JSON.parse(JSON.stringify(res.data.data)));
 	dynamicRoutes[0].children = await backEndComponent(res.data.data);
 	await setAddRoute();

--
Gitblit v1.9.2