You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ke...@apache.org on 2021/12/31 05:14:14 UTC

[dolphinscheduler] branch dev updated: [Fix-7510] Remedy the issue with clicking the breadcrumb on the page of file resources. (#7747)

This is an automated email from the ASF dual-hosted git repository.

kerwin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 1f97a62  [Fix-7510] Remedy the issue with clicking the breadcrumb on the page of file resources. (#7747)
1f97a62 is described below

commit 1f97a62411da2a2f9b43c6a54fe9a2a8c6929411
Author: calvin <ji...@163.com>
AuthorDate: Fri Dec 31 13:14:07 2021 +0800

    [Fix-7510] Remedy the issue with clicking the breadcrumb on the page of file resources. (#7747)
---
 .../home/pages/resource/pages/file/pages/subdirectory/index.vue    | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/index.vue
index 50c0ecf..3f2bf0b 100755
--- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/index.vue
@@ -18,7 +18,7 @@
   <div class="home-main list-construction-model">
     <div class="content-title">
       <a class="bread" style="padding-left: 15px;" @click="() => $router.push({path: `/resource/file`})">{{$t('File Manage')}}</a>
-      <a class="bread" v-for="(item,$index) in breadList" :key="$index" @click="_ckOperation($index)">{{'>'+item}}</a>
+      <a class="bread" v-for="(item,$index) in breadList" :key="$index" @click="_ckOperation(item, $index)">{{'>'+item}}</a>
     </div>
     <div class="conditions-box">
       <m-conditions @on-conditions="_onConditions">
@@ -135,7 +135,7 @@
         this.searchParams.id = this.$route.params.id
         this._debounceGET()
       },
-      _ckOperation (index) {
+      _ckOperation (item, index) {
         let breadName = ''
         this.breadList.forEach((item, i) => {
           if (i <= index) {
@@ -147,7 +147,8 @@
       transferApi (api) {
         this.getResourceId({
           type: 'FILE',
-          fullName: api
+          fullName: api,
+          id: this.searchParams.id
         }).then(res => {
           localStore.setItem('currentDir', `${res.fullName}`)
           this.$router.push({ path: `/resource/file/subdirectory/${res.id}` })