From 15b9f79e6bf8653ec51d031933e191f1985d086d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Thu, 5 Sep 2024 10:22:38 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E7=BB=84=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/model-nav-group/index.ts | 4 ++--
src/components/model-nav-group/index.vue | 2 +-
.../model-nav-group-content.vue | 24 +++++++++----------
.../components/main/default/nav-group.ts | 20 ++++++++--------
4 files changed, 25 insertions(+), 25 deletions(-)
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: {},
},
],
},