Browse Source

通告权限

zhaoxiaohai 3 years ago
parent
commit
7506e47f61
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/annunciate/details.js

+ 2 - 2
pages/annunciate/details.js

@@ -15,10 +15,10 @@ Page({
         loading: false,
         isEvaluate: false
     },
-    async onLoad(options) {
+    onLoad(options) {
         let auth = [],
             dataAuth = '';
-        (options.auth) ? auth = options.auth.split(","): await getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['营销工具'], ['通告'])[0].apps[0].meta.auth.forEach(v => auth.push(v.optionname));
+        (options.auth) ? auth = options.auth.split(","): getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['营销工具'], ['通告'])[0].apps[0].meta.auth.forEach(v => auth.push(v.optionname));
         if (auth.includes('团队内部数据分析') && auth.includes('经销商数据分析')) {
             dataAuth = 'all';
         } else {