From 17381f701d4f2e969eade608f530bc6067fb50b6 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 16 Nov 2021 14:25:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=5F=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=5F?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=94=A8=E4=BE=8B=E8=B7=B3=E8=BD=AC=E5=90=8E?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E9=AB=98=E4=BA=AE=E4=BA=8C=E7=BA=A7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=20=20--bug=3D1007938=20--user=3D=E7=8E=8B=E5=AD=9D?= =?UTF-8?q?=E5=88=9A=20=E3=80=90=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E3=80=91=E9=A6=96=E9=A1=B5=E7=94=A8=E4=BE=8B=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=90=8E=E6=B2=A1=E6=9C=89=E9=AB=98=E4=BA=AE=E4=BA=8C=E7=BA=A7?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=20https://www.tapd.cn/55049933/s/1067670?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/components/api/head/ApiHeaderMenus.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/head/ApiHeaderMenus.vue b/frontend/src/business/components/api/head/ApiHeaderMenus.vue index 260bd63fef..5b394d824d 100644 --- a/frontend/src/business/components/api/head/ApiHeaderMenus.vue +++ b/frontend/src/business/components/api/head/ApiHeaderMenus.vue @@ -3,7 +3,7 @@ - + {{ $t("i18n.home") }} @@ -40,6 +40,7 @@ export default { components: {SearchList, MsCreateButton, MsShowAll, MsRecentList, ProjectChange}, data() { return { + currentPath: '', testRecent: { title: this.$t('load_test.recent'), url: "/api/recent/5", @@ -64,6 +65,15 @@ export default { currentProject: '' }; }, + watch: { + '$route': { + immediate: true, + handler(to) { + let path = to.path.split("/", 3); + this.currentPath = '/' + path[1] + '/' + path[2]; + } + } + }, methods: { reload() { this.isRouterAlive = false;