Skip to content

Commit

Permalink
feature: 系统接入添加日志版本跳转文档中心
Browse files Browse the repository at this point in the history
  • Loading branch information
lhzzforever committed Oct 10, 2024
1 parent 77cbc47 commit 721d44b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions frontend/src/views/user/components/record-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<div slot="content" v-bkloading="{ isLoading: logDetailLoading, opacity: 1 }">
<section v-show="!logDetailLoading">
<div class="link-btn">
<bk-link class="link" theme="primary" href="https://bk.tencent.com/docs/document/6.0/160/8402" target="_blank">{{$t(`m.user['同步失败排查指引']`)}}</bk-link>
<bk-link class="link" theme="primary" :href="linkUrl" target="_blank">{{$t(`m.user['同步失败排查指引']`)}}</bk-link>
</div>
<div v-if="exceptionMsg || traceBackMsg"
class="msg-content">
Expand All @@ -131,8 +131,9 @@
</template>

<script>
import { mapGetters } from 'vuex';
import { navDocCenterPath, formatCodeData, timestampToTime, getWindowHeight } from '@/common/util';
import { bus } from '@/common/bus';
import { formatCodeData, timestampToTime, getWindowHeight } from '@/common/util';
import RenderStatus from './render-status';
import moment from 'moment';
Expand Down Expand Up @@ -209,9 +210,13 @@
tip: '',
tipType: ''
},
tableHeight: getWindowHeight() - 185
tableHeight: getWindowHeight() - 185,
linkUrl: 'https://bk.tencent.com/docs/document/6.0/160/8402'
};
},
computed: {
...mapGetters(['versionLogs'])
},
watch: {
'pagination.current' (value) {
this.currentBackup = value;
Expand All @@ -234,6 +239,9 @@
bus.$off('updatePoll');
bus.$off('sync-success');
});
if (this.versionLogs.length) {
this.linkUrl = `${window.BK_DOCS_URL_PREFIX}${navDocCenterPath(this.versionLogs, `/IntegrateGuide/HowTo/FAQ/Debug/SaaS-DeptSync.md`, false)}`;
}
},
methods: {
async fetchPageData () {
Expand Down

0 comments on commit 721d44b

Please sign in to comment.