From 33812d878ebad4a91d11b48e66f6f218dcb2ee01 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 28 Feb 2024 08:32:24 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=8C=89=E9=92=AE=E6=9D=83?=
=?UTF-8?q?=E9=99=90=E6=8E=A7=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config.js | 2 +-
pages/index.vue | 41 ++++++++++++++++++++++++++---------------
2 files changed, 27 insertions(+), 16 deletions(-)
diff --git a/config.js b/config.js
index a734e96..1621169 100644
--- a/config.js
+++ b/config.js
@@ -1,6 +1,6 @@
// 应用全局配置
module.exports = {
- baseUrl: process.env.NODE_ENV === 'development' ? 'http://192.168.1.18:12080' : 'http://dev.ccwin-in.com:12080/api',
+ baseUrl: process.env.NODE_ENV === 'development' ? 'http://192.168.0.172:12080' : 'http://dev.ccwin-in.com:12080/api',
baseApi:process.env.NODE_ENV === 'development' ? '/admin-api' : '/api/admin-api',
// 应用信息
appInfo: {
diff --git a/pages/index.vue b/pages/index.vue
index 9d96c21..c87309b 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -35,19 +35,20 @@
采购入库
-
-
-
- 采购入库
-
-
-
-
-
- 备件归还
-
-
-
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+ {{item.name}}
+
+
+
@@ -55,12 +56,14 @@
出库
-
+
+
- 领用出库
+ {{item.name}}
+
@@ -85,6 +88,7 @@
return {
bgOpacity: 0,
token: '',
+ menus:[]
}
},
@@ -113,6 +117,13 @@
// }
this.token = getAccessToken() ? getAccessToken() :''
console.log( this.$store.state)
+ if (getAccessToken()) {
+ this.$store.dispatch('GetPermissionInfo').then(res => {
+ this.menus = res.menus.filter(item=>item.path == '/pda')[0].children
+ console.log(this.menus)
+ })
+ }
+
},
onPageScroll(e) {
if (e.scrollTop > 0) {