#
whycq
2023-06-25 88ed4e64191d2f1fc5470c714357f351a7829904
pages/home/home.vue
@@ -21,6 +21,7 @@
         return {
            baseUrl: '',
            token: '',
            icon: '',
            elements: [],
            elements2: [{
                  title: '组托入库',
@@ -136,11 +137,12 @@
                        if (res.data.length < 0) {
                           break;
                        }
                        that.getIcon(res.data[i].title)
                        that.elements.unshift({
                           title: res.data[i].name,
                           name: res.data[i].title,
                           color: that.colorList[i],
                           cuIcon: 'safe',
                           cuIcon: that.icon,
                           url: res.data[i].action
                        })
                     }
@@ -148,7 +150,8 @@
                        title: '退出登录',
                        name: 'logOut',
                        color: 'grey',
                        cuIcon: 'exit'
                        cuIcon: 'exit',
                        url: '/login/logOut'
                     })
                  } else if (res.code === 403) {
                     uni.showToast({
@@ -180,6 +183,12 @@
               }
            })
         },
         getIcon(e) {
            const ways = ['pakin','orderPakin','orderPutOn']
            if (ways.includes(e)) {
               this.icon = 'pullup'
            }
         }
      }
   }
</script>