Merge branch 'master' of https://gitcode.com/hk_openRepo/OpenRepo_Portal into junjie_dev

# Conflicts:
#	src/views/Jyh/Search/Components/BatchVerify.vue
This commit is contained in:
@user8949
2025-03-18 22:11:29 +08:00
11 changed files with 339 additions and 229 deletions

View File

@@ -30,7 +30,7 @@
<span>订阅漏洞预警通知</span>
</div>
</template>
<SubscriptionModal @close="colseSubscription" :softwareData="softwareData"></SubscriptionModal>
<SubscriptionModal @close="colseSubscription" :softwareData="{id: softwareId}"></SubscriptionModal>
</d-modal>
</div>
</div>
@@ -73,7 +73,7 @@ import SubscriptionModal from '@/views/Jyh/Version/Detail/SubscriptionModal.vue'
import { releaseInfo } from '@/api/jyh';
const selectTab = ref('bbxx');
const softwareId = ref();
// 删除弹窗
const item = ref('');
const deleteModal = ref();
@@ -96,6 +96,7 @@ const getReleaseInfo = async(versionId) => {
onMounted(() => {
const versionId = route.params.versionId; // 获取路由参数 versionId
softwareId.value = versionId;
if (versionId) {
getReleaseInfo(versionId); // 调用接口获取数据
}
@@ -194,13 +195,6 @@ const signCla = (row: any) => {
router.push('/cla/' + row.object_id);
};
const softwareData = ref({
name: 'vue',
version: '3.5.13',
lifecycle: '选中型',
risk: '低风险',
});
const subscribeModalVisable = ref(false);
const openSubscription = () => {
subscribeModalVisable.value = true;