pages/home/home.vue
@@ -142,7 +142,15 @@ method: 'POST', success(res) { res = res.data that.elements = [] that.elements = [ { title: '组件物料', name: 'moduleMat', color: 'green', cuIcon: 'order', url: '/mat/moduleMat' }, ] if (res.code === 200) { if (res.data == undefined || res.data == null || res.data == "") { that.elements = that.elements2