SBOM树展示异常修复
This commit is contained in:
@@ -203,7 +203,6 @@ const closeOutside = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const submit = (formData) => {
|
const submit = (formData) => {
|
||||||
debugger;
|
|
||||||
isOpen.value = false;
|
isOpen.value = false;
|
||||||
router.push({
|
router.push({
|
||||||
name: 'Search',
|
name: 'Search',
|
||||||
|
|||||||
@@ -54,7 +54,9 @@ const renameComponentsToChildren = (obj) => {
|
|||||||
|
|
||||||
// 如果对象有 `components` 属性,将其改为 `children`
|
// 如果对象有 `components` 属性,将其改为 `children`
|
||||||
if (obj.hasOwnProperty('component')) {
|
if (obj.hasOwnProperty('component')) {
|
||||||
obj.id = obj.component.id; // 将 components 改为 children
|
// 生成随机 UUID 并赋值给 id
|
||||||
|
obj.id = crypto.randomUUID(); // 使用浏览器/Node.js 原生 API
|
||||||
|
// obj.id = obj.component.id; // 将 components 改为 children
|
||||||
obj.libraryName = obj.component.libraryName; // 将 components 改为 children
|
obj.libraryName = obj.component.libraryName; // 将 components 改为 children
|
||||||
obj.latestVersion = obj.component.latestVersion; // 将 components 改为 children
|
obj.latestVersion = obj.component.latestVersion; // 将 components 改为 children
|
||||||
// delete obj.components; // 删除原来的 components 属性
|
// delete obj.components; // 删除原来的 components 属性
|
||||||
|
|||||||
Reference in New Issue
Block a user