From 2ee476f9045b87f6bf47bf6d865332604f2c2ff9 Mon Sep 17 00:00:00 2001 From: Bai Date: Wed, 27 May 2020 20:20:03 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E6=9B=B4=E6=96=B0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF=E9=A1=B5=E9=9D=A2=EF=BC=88?= =?UTF-8?q?3=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/userviews/users/UserProfile.vue | 4 +++- vue.config.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/userviews/users/UserProfile.vue b/src/userviews/users/UserProfile.vue index 8ae88421f..762fd358a 100644 --- a/src/userviews/users/UserProfile.vue +++ b/src/userviews/users/UserProfile.vue @@ -88,7 +88,9 @@ export default { label: this.$t('common.Reset') }, callbacks: { - click: function() {} + click: function() { + window.open(`/users/profile/pubkey/generate/`, '_blank') + } } } ] diff --git a/vue.config.js b/vue.config.js index c597ca2b6..bee40ac2e 100644 --- a/vue.config.js +++ b/vue.config.js @@ -47,7 +47,7 @@ module.exports = { ['^' + process.env.VUE_APP_BASE_API]: '' } }, - '^/(auth|static|users/profile/otp/)': { + '^/(auth|static|dsers/profile/op/|users/profile/pubkey/generate/)': { target: `http://localhost:8080`, changeOrigin: true }