From c79985834b7bfa02c2d1a9fc68fd49c0e49f92cf Mon Sep 17 00:00:00 2001 From: crudapi Date: Sat, 27 Jul 2024 12:27:09 +0800 Subject: [PATCH] login --- src/layouts/MainLayout.vue | 15 ++++++++++++--- src/pages/Login.vue | 32 ++++++++++++++++++++++++++++---- 2 files changed, 40 insertions(+), 7 deletions(-) diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index a9fc90a..cbc42c5 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -227,7 +227,12 @@ export default { leftDrawerOpen: true, selected: null, - config: {}, + config: { + toolBarHiddenOfficialWebsite: true, + toolBarHiddenHelp: true, + toolBarHiddenCode: true + }, + menu: {}, appName: "crudapi", systemMenu: { label: "系统", @@ -301,7 +306,7 @@ export default { this.allMenu.push(dataSourceMenus[i]); } - this.allMenu.push(this.systemMenu); + (menu["system"]) && this.allMenu.push(this.systemMenu); this.$refs.qTreeProxy.setExpanded("system", true); } catch (error) { @@ -349,7 +354,11 @@ export default { } catch (error) { console.warn("Please upgrade the back-end version, otherwise it may not be compatible!"); } - + if (dataSourceName === "primary") { + this.menu = menu; + } + + const dataSourceMenu = { label: dataSource.caption, labelKey: "/dataSource/" + dataSourceName, diff --git a/src/pages/Login.vue b/src/pages/Login.vue index 8691869..03fbf09 100644 --- a/src/pages/Login.vue +++ b/src/pages/Login.vue @@ -8,7 +8,7 @@
-
欢迎使用crudapi增删改查接口零代码开发平台
+
欢迎使用{{ config.appName }}
@@ -62,7 +62,7 @@ -