一些issue修改
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user