jwyu před 2 roky
rodič
revize
345dd94c0c
1 změnil soubory, kde provedl 10 přidání a 3 odebrání
  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