From 532cef14e67b077e25f42c25200e8ee19a5f1722 Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Wed, 27 May 2020 17:09:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BB=84=E7=BB=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/authority/organizationedit.vue | 3 ++- src/router/index.js | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/authority/organizationedit.vue b/src/pages/authority/organizationedit.vue index e75e7a1..c6bbe37 100644 --- a/src/pages/authority/organizationedit.vue +++ b/src/pages/authority/organizationedit.vue @@ -2,7 +2,7 @@

权限管理 / 组织管理 / - 组织编辑 + 组织{{$route.params.id?'编辑':'新增'}}

@@ -148,6 +148,7 @@ export default { this.$store.commit('rolefun',data) this.getOriginArr() }); + console.log(this.$route.params.id); }, mounted() {}, methods: { diff --git a/src/router/index.js b/src/router/index.js index a1e4eb3..46d6d73 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -234,7 +234,12 @@ export default new Router({ component: () => import("@/pages/authority/organizationdetail"), }, { - path: "/authority/organizationedit", // 组织管理组织编辑 + path: "/authority/organizationedit", // 组织管理组织新增 + name: "organizationedit", + component: () => import("@/pages/authority/organizationedit"), + }, + { + path: "/authority/organizationedit/:id", // 组织管理组织编辑 name: "organizationedit", component: () => import("@/pages/authority/organizationedit"), }, -- 2.26.0