diff --git a/src/components/Header/UserAvatar.vue b/src/components/Header/UserAvatar.vue index 4ba6875..05224e7 100644 --- a/src/components/Header/UserAvatar.vue +++ b/src/components/Header/UserAvatar.vue @@ -52,13 +52,18 @@ const toggleDropDown = (isShow) => { } }; -const logout = async() => { +const logout = async () => { + RemoveInfo(); // 目前先强制清除用户信息,后面接口通了再调 const res = await toLogout(); await reqCatch(devLogout, {}); // 清除社区登录 if (!res.error) { RemoveInfo(); // 有权限刷新当前页,无权限需要登录返回首页 - if (route.meta?.needLogin || (route.meta?.type === 'repo' && repoInfo.value?.visibility === 'private') || orgInfo.value?.visibility === 'private') { + if ( + route.meta?.needLogin || + (route.meta?.type === 'repo' && repoInfo.value?.visibility === 'private') || + orgInfo.value?.visibility === 'private' + ) { router.push('/'); } else { router.go(0); @@ -84,11 +89,10 @@ const DEFAULT_ROUTER_PARAMS = Object.freeze({ params: { namespace: accountInfo.value.username }, - query: { - } + query: {} }); // 获取router跳转参数 -const getRouterLink = params => { +const getRouterLink = (params) => { if (typeof params === 'string') { return { ...DEFAULT_ROUTER_PARAMS, @@ -156,7 +160,7 @@ const blockList = ref([ justify-content: space-between; font-size: 14px; font-weight: 500; - color: #2D2D2E; + color: #2d2d2e; line-height: 20px; .close-icon { cursor: pointer; @@ -164,7 +168,7 @@ const blockList = ref([ } &-id { font-size: 12px; - color: #707A87; + color: #707a87; line-height: 16px; } } @@ -183,7 +187,6 @@ const blockList = ref([ } } } - diff --git a/src/views/Jyh/Version/Detail/index.vue b/src/views/Jyh/Version/Detail/index.vue index 3fe6db8..1804037 100644 --- a/src/views/Jyh/Version/Detail/index.vue +++ b/src/views/Jyh/Version/Detail/index.vue @@ -27,11 +27,13 @@ +
+
@@ -41,6 +43,7 @@ import { ref, reactive } from 'vue'; import { useRouter, useRoute } from 'vue-router'; import { getOrgInfo } from '@/views/Org/hooks/orgInfo'; import VulnerabilitiesList from './VulnerabilitiesList.vue'; +import CommunityInfo from './CommunityInfo.vue'; import VersionInfo from './VersionInfo.vue'; const { namespace } = getOrgInfo(); const avatarUrl = '/src/assets/imgs/jyh/工程首字母图标.png';