From 99eb01a3b5dd14a6052f4212dbb130cb84528576 Mon Sep 17 00:00:00 2001
From: Xulinchuan <2026734208@qq.com>
Date: Fri, 13 Jun 2025 13:28:44 +0800
Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=89=8C=E4=BD=BF=E7=94=A8=E6=83=85?=
=?UTF-8?q?=E5=86=B5=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5=EF=BC=8C=E6=96=87?=
=?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/index.js | 25 +++++++++++++++++++++++++
src/views/brand/management/index.vue | 16 +++++++++++++++-
src/views/content/index.vue | 5 +++++
3 files changed, 45 insertions(+), 1 deletion(-)
create mode 100644 src/views/content/index.vue
diff --git a/src/router/index.js b/src/router/index.js
index 7e11391..ef198ed 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -540,6 +540,31 @@ export const constantRoutes = [
],
},
+ //内容管理,没有子菜单
+ // {
+ // path: '/content',
+ // name: "content",
+ // meta: {
+ // title: "内容管理",
+ // icon: "education",
+ // },
+ // component: Layout,
+ // children: [
+ // {
+ // path: 'content/index',
+ // component: () => import('@/views/content/index'),
+ // name: 'content',
+ // hidden: false,
+ // meta: {
+ // title: "内容管理",
+ // icon: "",
+ // noCache: false,
+ // link: null,
+ // },
+ // },
+ // ],
+ // }
+
]
// 动态路由,基于用户权限动态去加载
diff --git a/src/views/brand/management/index.vue b/src/views/brand/management/index.vue
index 675e24e..76feb21 100644
--- a/src/views/brand/management/index.vue
+++ b/src/views/brand/management/index.vue
@@ -124,6 +124,9 @@
+
+
+
{
//处理dialogForm.files
dialogForm.files.forEach((item, index) => {
+ //判断item不存在存在fileName这个属性的时候,将item.name赋给item.fileName,否则不做处理
item.fileName = item.name;
- item.fileUrl = item.response.data.url;
+ if (item.hasOwnProperty('response')) {
+ item.fileUrl = item.response.data.url;
+ }
+ // item.fileName = item.name;
+ // item.fileUrl = item.response.data.url;
})
console.log('dialogForm.files',dialogForm.files);
@@ -456,6 +469,7 @@ const resetDlg= () => {
Object.assign(dialogForm, { // 保持响应性,手动清空字段
id: "",
title: "",
+ descStr: "",
files: [],
code: ""
});
diff --git a/src/views/content/index.vue b/src/views/content/index.vue
new file mode 100644
index 0000000..45d7f68
--- /dev/null
+++ b/src/views/content/index.vue
@@ -0,0 +1,5 @@
+
+
+ 待开发
+
+
\ No newline at end of file