From 6dc71fe612b7dc11be073ca693ffbd2615ba36b7 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 17 May 2021 19:29:06 +0800 Subject: [PATCH] =?UTF-8?q?perf(assets):=20=E4=BF=AE=E5=A4=8D=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=94=A8=E6=88=B7=E8=AF=A6=E6=83=85=E4=B8=AD=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=8C=89=E9=92=AE=E5=9C=B0=E5=9D=80=E4=B8=8D=E5=AF=B9?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SystemUser/SystemUserDetail/index.vue | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/views/assets/SystemUser/SystemUserDetail/index.vue b/src/views/assets/SystemUser/SystemUserDetail/index.vue index 9eb3c0800..98f574b2d 100644 --- a/src/views/assets/SystemUser/SystemUserDetail/index.vue +++ b/src/views/assets/SystemUser/SystemUserDetail/index.vue @@ -1,7 +1,7 @@ @@ -20,8 +20,9 @@ export default { AccountList }, data() { + const vm = this return { - TaskDetail: {}, + systemUser: {}, config: { activeMenu: 'Detail', submenu: [ @@ -37,9 +38,19 @@ export default { title: this.$t('assets.AccountList'), name: 'AccountList' } - ], - hasRightSide: true + hasRightSide: true, + actions: { + updateCallback: () => { + const id = this.$route.params.id + const routeName = 'SystemUserUpdate' + this.$router.push({ + name: routeName, + params: { id: id }, + query: { protocol: vm.systemUser.protocol } + }) + } + } } } }