jwyu hace 2 años
padre
commit
345dd94c0c
Se han modificado 1 ficheros con 10 adiciones y 3 borrados
  1. 10 3
      pages-report/reportForVariety/list.vue

+ 10 - 3
pages-report/reportForVariety/list.vue

@@ -167,9 +167,16 @@ export default {
                 let arr=res.data.permission_list||[]
                 //如果一个权限都没有则返回到分类列表
                 if(arr.length===0){
-                    uni.reLaunch({
-						url: `pages-report/classify`,
-					});
+                    uni.showToast({
+                        title: '暂无权限',
+                        icon: 'none'
+                    })
+                    setTimeout(() => {
+                        uni.reLaunch({
+                            url: `pages-report/classify`,
+                        });
+                    }, 1500);
+                    
                     return
                 }
                 this.varietyList=arr