diff --git a/src/components/model-nav-group/index.ts b/src/components/model-nav-group/index.ts
index 6ea71daf..8713d8db 100644
--- a/src/components/model-nav-group/index.ts
+++ b/src/components/model-nav-group/index.ts
@@ -1,8 +1,8 @@
interface nav_group {
id: string;
- nav_image: uploadList[];
+ img: uploadList[];
title: string;
- title_link: object,
+ link: object,
}
interface nav_group_content {
diff --git a/src/components/model-nav-group/index.vue b/src/components/model-nav-group/index.vue
index 6ebde460..228c8622 100644
--- a/src/components/model-nav-group/index.vue
+++ b/src/components/model-nav-group/index.vue
@@ -5,7 +5,7 @@
diff --git a/src/components/model-nav-group/model-nav-group-content.vue b/src/components/model-nav-group/model-nav-group-content.vue
index b936cd70..106854a3 100644
--- a/src/components/model-nav-group/model-nav-group-content.vue
+++ b/src/components/model-nav-group/model-nav-group-content.vue
@@ -39,13 +39,13 @@
@@ -71,27 +71,27 @@ const props = withDefaults(defineProps(),{
nav_content_list: [
{
id: get_math(), // 唯一标识使用,避免使用index作为唯一标识导致渲染节点出现问题
- nav_image: [],
+ img: [],
title: '',
- title_link: {},
+ link: {},
},
{
id: get_math(), // 唯一标识使用,避免使用index作为唯一标识导致渲染节点出现问题
- nav_image: [],
+ img: [],
title: '',
- title_link: {},
+ link: {},
},
{
id: get_math(), // 唯一标识使用,避免使用index作为唯一标识导致渲染节点出现问题
- nav_image: [],
+ img: [],
title: '',
- title_link: {},
+ link: {},
},
{
id: get_math(), // 唯一标识使用,避免使用index作为唯一标识导致渲染节点出现问题
- nav_image: [],
+ img: [],
title: '',
- title_link: {},
+ link: {},
}
]
})
@@ -104,9 +104,9 @@ const { form } = toRefs(state);
const add = () => {
form.value.nav_content_list.push({
id: get_math(),
- nav_image: [],
+ img: [],
title: '',
- title_link: {},
+ link: {},
});
}
const remove = (index: number) => {
diff --git a/src/views/layout/components/main/default/nav-group.ts b/src/views/layout/components/main/default/nav-group.ts
index 30fd7c67..fd585932 100644
--- a/src/views/layout/components/main/default/nav-group.ts
+++ b/src/views/layout/components/main/default/nav-group.ts
@@ -2,9 +2,9 @@ import { get_math } from '@/utils';
import defaultCommon from './index';
interface nav_group {
id: string;
- nav_image: uploadList[];
+ img: uploadList[];
title: string;
- title_link: object;
+ link: object;
}
interface defaultSearch {
content: {
@@ -44,27 +44,27 @@ const defaultSearch: defaultSearch = {
nav_content_list: [
{
id: get_math(), // 唯一标识使用,避免使用index作为唯一标识导致渲染节点出现问题
- nav_image: [],
+ img: [],
title: '测试标题',
- title_link: {},
+ link: {},
},
{
id: get_math(), // 唯一标识使用,避免使用index作为唯一标识导致渲染节点出现问题
- nav_image: [],
+ img: [],
title: '测试标题',
- title_link: {},
+ link: {},
},
{
id: get_math(), // 唯一标识使用,避免使用index作为唯一标识导致渲染节点出现问题
- nav_image: [],
+ img: [],
title: '测试标题',
- title_link: {},
+ link: {},
},
{
id: get_math(), // 唯一标识使用,避免使用index作为唯一标识导致渲染节点出现问题
- nav_image: [],
+ img: [],
title: '测试标题',
- title_link: {},
+ link: {},
},
],
},