一些issue修改

This commit is contained in:
付民康
2025-03-21 09:49:58 +08:00
parent adf790ea15
commit a9c4bc192c
7 changed files with 39 additions and 30 deletions

View File

@@ -57,7 +57,7 @@
</d-col>
<d-col :span="8">
<span class="card-key width-110">所属领域/产业</span>
<span class="card-val">{{ ReleaseInfo.referenceInfo.industry || '--' }}</span>
<span class="card-val">{{ getIndustryName(ReleaseInfo.referenceInfo.industry) || '--' }}</span>
</d-col>
<!-- <d-col :span="8">-->
<!-- <span class="card-key width-110">版本火车名称</span>-->
@@ -294,6 +294,7 @@ import { discussDetailType, userInfoType } from '@/api/discussion/types';
import { Message } from 'vue-devui/message';
import { useClipboard } from '@vueuse/core/index';
import { releaseInfo } from '@/api/jyh';
import { useGlobalInfoStore } from '@/stores/Global';
const route = useRoute();
const emits = defineEmits(['changeTabs']);
@@ -313,6 +314,12 @@ const ReleaseInfo = ref({
openSourceLicenseList: [],
referenceInfo: {},
});
const globalInfo = useGlobalInfoStore();
const industryList = ref(globalInfo.industryList);
const getIndustryName = (value) => {
const industry = industryList.value.find(item => item.value === value);
return industry ? industry.name : '未知行业'; // 如果找不到,返回默认值
};
const router = useRouter();