export default {
  props: ['consumerKey', 'consumerSecret', 'accessToken', 'accessTokenSecret', 'type'],

  methods: {
    checkKey() {
      const res = this.consumerKey && this.consumerSecret
      if(!res) {
        this.$router.replace('/')
      }
      return res
    }
  }
}

@@ -16,120 +16,15 @@
 %7B%0A  
-props: %5B'consumerKey', 'consumerSecret', 'accessToken', 'accessTokenSecret', 'type'%5D,%0A%0A  methods: %7B%0A    checkKey
+created
 () %7B
@@ -32,27 +32,41 @@
     
-  
 const 
-res
+goTop
  = 
+!
 this.
+$store.state.
 cons
@@ -77,16 +77,30 @@
 Key 
-&& 
+%7C%7C !
 this.
+$store.state.
 cons
@@ -113,90 +113,75 @@
 cret
-%0A      if(!res) %7B%0A        this.$router.replace('/')%0A      %7D%0A      return res%0A    %7D
+ %7C%7C !this.$store.state.type%0A    if(goTop) this.$router.replace('/')
 %0A  %7D

Simplify base