snow 4 months ago
parent
commit
af973868de
4 changed files with 7 additions and 7 deletions
  1. 0 0
      dist/index.html
  2. 0 0
      dist/static/js/app.771581bd.js
  3. BIN
      dist/static/js/app.771581bd.js.gz
  4. 7 7
      src/pages/index.vue

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.771581bd.js


BIN
dist/static/js/app.df5c4a60.js.gz → dist/static/js/app.771581bd.js.gz


+ 7 - 7
src/pages/index.vue

@@ -35,16 +35,16 @@ export default {
   },
   computed: {
     permissionRoutes(){
-      return this.routes
+      return this.routes.filter(route => this.isShow.includes(route.permission) || this.isShow.includes(Number(route.permission)))
     }
   },
   mounted() {
     document.title = "数据导航"
-    // if (!getParameterByName('code')) {
-    //   this.login()
-    // } else {
-    //   this.requestUserinfo()
-    // }
+    if (!getParameterByName('code')) {
+      this.login()
+    } else {
+      this.requestUserinfo()
+    }
   },
   methods:{
     goRouter(e,link){
@@ -110,7 +110,7 @@ export default {
       }
     },    
     login() {
-      const redirect_url = encodeURIComponent('http://stat.caixiao365.com/accountsReceivable')
+      const redirect_url = encodeURIComponent('http://stat.caixiao365.com/')
       var state = 'wx_' + Math.random().toString(36).substr(2, 15)
       const scope = 'snsapi_userinfo'
       const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${config.appId}&redirect_uri=${redirect_url}&response_type=code&scope=${scope}&state=${state}#wechat_redirect`

Some files were not shown because too many files changed in this diff