From bccdb8f81c07c8a9cdcd6838173dfd1c73c98d90 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 26 二月 2026 16:05:30 +0800
Subject: [PATCH] #
---
pages/home/home.vue | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/pages/home/home.vue b/pages/home/home.vue
index 4d8ad18..c920025 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -172,6 +172,7 @@
copyright 漏 2022 娴欐睙涓壃绔嬪簱鏈夐檺鍏徃 all rights reserved.
</text>
</view>
+ <u-toast ref="uToast"></u-toast>
</view>
</template>
@@ -194,7 +195,7 @@
name: 'pakin',
color: 'cyan',
cuIcon: 'pullup',
- url: '/pakin/pakin'
+ url: '/InManagement/ContainerBinding/Container_Binding'
},
{
title: '璁㈠崟鍏ュ簱',
@@ -379,29 +380,29 @@
try {
// custom.catch=true ensures errors throw into the catch block
// custom.toast=false disables the interceptor's default toast so we can handle it manually
- const res = await getAuthMenu(
+ const { data } = await getAuthMenu(
{},
{ custom: { catch: true, toast: false } }
)
this.elements = []
if (
- res.data == undefined ||
- res.data == null ||
- res.data === ''
+ data == undefined ||
+ data == null ||
+ data === ''
) {
this.elements = this.elements2
return
}
- for (let i = 0; i < res.data.length; i++) {
- this.getIcon(res.data[i].title)
+ for (let i = 0; i < data.length; i++) {
+ this.getIcon(data[i].title)
this.elements.unshift({
- title: res.data[i].name,
- name: res.data[i].title,
+ title: data[i].name,
+ name: data[i].title,
color: this.colorList[i % this.colorList.length],
cuIcon: this.icon,
- url: res.data[i].action
+ url: data[i].action
})
}
--
Gitblit v1.9.1