-
+
@@ -17,6 +17,7 @@
import Login from '@repository/components/Login'
import cookies from 'js-cookie'
import { mapActions } from 'vuex'
+ import { getTrueVersion } from '@repository/utils/versionLogs'
export default {
components: { NoticeComponent, Header, Login },
mixins: [mixin],
@@ -30,10 +31,18 @@
return subEnv
}
},
- created () {
+ async created () {
const username = cookies.get('bk_uid')
username && this.SET_USER_INFO({ username })
this.getPermissionDialogConfig()
+ const hasShowLog = cookies.get('hasShowLog') || false
+ const logs = await getTrueVersion()
+ if (logs.length > 0 && !this.ciMode && !this.isSubSaas) {
+ this.$store.commit('SET_VERSION_LOGS', logs)
+ if (!hasShowLog) {
+ this.$refs.head.showVersionLogs()
+ }
+ }
if (!this.isSubSaas && this.ciMode) {
this.loadDevopsUtils('/ui/devops-utils.js')
// 请求管理员信息
diff --git a/src/frontend/devops-repository/src/components/Header/index.vue b/src/frontend/devops-repository/src/components/Header/index.vue
index 559451f562..364750b855 100644
--- a/src/frontend/devops-repository/src/components/Header/index.vue
+++ b/src/frontend/devops-repository/src/components/Header/index.vue
@@ -26,7 +26,8 @@
size="small"
:enable-virtual-scroll="projectList && projectList.length > 3000"
:list="projectList">
-
@@ -68,13 +69,35 @@
:class="['bkci-dropdown-item']"
@click="changeLanguage(item.id)">
- {{item.name}}
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+ {{ $t(`helps.${item.name}`) }}