From d3ee2de7d4b60b573842b1c7f31e755c854df0d4 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 11 九月 2023 09:28:05 +0800
Subject: [PATCH] 小程序菜单
---
minipro_standard/pages/workbench/workbench.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/minipro_standard/pages/workbench/workbench.vue b/minipro_standard/pages/workbench/workbench.vue
index 22d9e44..a171433 100644
--- a/minipro_standard/pages/workbench/workbench.vue
+++ b/minipro_standard/pages/workbench/workbench.vue
@@ -6,7 +6,7 @@
<span>{{row.label}}</span>
</view>
<div class="menu_list_list">
- <view class="menu_list_item" v-for="item in row.children" :key="item.id" @click="jump(item)">
+ <view class="menu_list_item" v-for="item in row.children" :key="item.id" @click="jump(item.url)">
<image :src="item.icon" mode="widthFix" />
<span>{{item.label}}</span>
</view>
@@ -28,9 +28,9 @@
components: {
myTabbar
},
- computed: mapState([
- 'Menu'
- ]),
+ computed: {
+ ...mapState(['Menu'])
+ },
data() {
return {
@@ -40,8 +40,8 @@
uni.hideTabBar()
},
methods: {
- jump(row) {
- console.log(row)
+ jump(url) {
+ uni.navigateTo({ url });
}
}
}
--
Gitblit v1.9.3