(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{710:function(t,e,n){"use strict";n.r(e);var r=n(8),o=n(38);function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function h(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var f={data:function(){return{authToken:this.$route.query.token}},created:function(){this.needAuth()},methods:h(h({},Object(o.b)({openAuthLogin:"user/openAuthLogin",getUserInfo:"user/getUserInfo"})),{},{needAuth:function(){var t=this;this.authToken?(this.$toast.loading("身份验证中..."),this.openAuthLogin({token:this.authToken}).then((function(){t.getUserInfo(),t.$toast("授权登录成功"),t.$router.push("/home")})).catch((function(e){var n=e.msg;t.$toast(n)}))):this.$router.push("/home")}})},O=n(43),component=Object(O.a)(f,(function(){var t=this.$createElement;return(this._self._c||t)("nuxt")}),[],!1,null,null,null);e.default=component.exports}}]);