Browse Source

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

3.0.0/version-upgrade
calvin 3 years ago committed by GitHub
parent
commit
1f97a62411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/index.vue

7
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}` })

Loading…
Cancel
Save