#
zhou zhou
7 天以前 bccdb8f81c07c8a9cdcd6838173dfd1c73c98d90
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
               })
            }