From 1ab8906e1480d776a129a8540f107516317c5b5a Mon Sep 17 00:00:00 2001 From: 1549469775 <1549469775@qq.com> Date: Tue, 12 Nov 2019 23:43:48 +0800 Subject: [PATCH] eee --- api/auth.js | 13 ------------- api/index.js | 16 ++++++++++++++++ docs/200.html | 4 ++-- docs/_nuxt/19e7dfd2cc43c3efa4ad.js | 1 + docs/_nuxt/1fdd596bb7c61c5703ee.js | 1 - docs/_nuxt/82f852f024858dd1c097.js | 1 + docs/_nuxt/91a0b7356d49c51eeca2.js | 1 - docs/_nuxt/aa460a7b3c61db7a1a7f.js | 1 - docs/_nuxt/c48036f071670332a347.js | 2 -- docs/_nuxt/db49ed77c094010b0999.js | 2 ++ docs/_nuxt/ddc264d7abed73425203.js | 1 + docs/_nuxt/e8fe423085a376fa9e7d.js | 1 + docs/_nuxt/f1d438a2f1e4746b7556.js | 1 - docs/index.html | 4 ++-- docs/login/index.html | 6 ++++-- nuxt.config.js | 4 ++-- pages/login/index.vue | 29 ++++++++++++++++++++++++++--- plugins/axios.js | 14 +++++++++++--- 18 files changed, 69 insertions(+), 33 deletions(-) delete mode 100644 api/auth.js create mode 100644 api/index.js create mode 100644 docs/_nuxt/19e7dfd2cc43c3efa4ad.js delete mode 100644 docs/_nuxt/1fdd596bb7c61c5703ee.js create mode 100644 docs/_nuxt/82f852f024858dd1c097.js delete mode 100644 docs/_nuxt/91a0b7356d49c51eeca2.js delete mode 100644 docs/_nuxt/aa460a7b3c61db7a1a7f.js delete mode 100644 docs/_nuxt/c48036f071670332a347.js create mode 100644 docs/_nuxt/db49ed77c094010b0999.js create mode 100644 docs/_nuxt/ddc264d7abed73425203.js create mode 100644 docs/_nuxt/e8fe423085a376fa9e7d.js delete mode 100644 docs/_nuxt/f1d438a2f1e4746b7556.js diff --git a/api/auth.js b/api/auth.js deleted file mode 100644 index 1be8452..0000000 --- a/api/auth.js +++ /dev/null @@ -1,13 +0,0 @@ -export default function (req,res,next) { - // req 是 Node.js http request 对象 - // console.log(req.ctx.body={code:200}) - // console.log(res) - // ctx.body={ - // code:200 - // } - //next是一个调用下一个中间件的函数 - // 如果您的中间件不是最终执行,请不要忘记在最后调用next! - next() -} - - diff --git a/api/index.js b/api/index.js new file mode 100644 index 0000000..2ff0120 --- /dev/null +++ b/api/index.js @@ -0,0 +1,16 @@ +// import $axios from '@nuxtjs/axios' +// console.log($axios({ +// method:'POST', +// url:'/', +// data:{}, +// params:{} +// })); + +// export default ($axios)=>{ +// return { +// register(){$axios({ +// method:'POST', +// url:'' +// })} +// } +// } \ No newline at end of file diff --git a/docs/200.html b/docs/200.html index 22e7309..88572f3 100644 --- a/docs/200.html +++ b/docs/200.html @@ -1,9 +1,9 @@ - Beer + Beer
Loading...
- + diff --git a/docs/_nuxt/19e7dfd2cc43c3efa4ad.js b/docs/_nuxt/19e7dfd2cc43c3efa4ad.js new file mode 100644 index 0000000..57671c5 --- /dev/null +++ b/docs/_nuxt/19e7dfd2cc43c3efa4ad.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{220:function(e,t,n){"use strict";n.r(t);n(37);var r,o,c=n(5),f={asyncData:(o=Object(c.a)(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.$axios,e.abrupt("return",{});case 2:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)}),fetch:(r=Object(c.a)(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.store,t.params,t.$axios;case 1:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)}),mounted:function(){},data:function(){return{}},methods:{}},h=n(16),component=Object(h.a)(f,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"home"},[this._v("\n home\n")])},[],!1,null,null,null);t.default=component.exports}}]); \ No newline at end of file diff --git a/docs/_nuxt/1fdd596bb7c61c5703ee.js b/docs/_nuxt/1fdd596bb7c61c5703ee.js deleted file mode 100644 index d4d7fca..0000000 --- a/docs/_nuxt/1fdd596bb7c61c5703ee.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{215:function(t,e,n){var content=n(217);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(39).default)("083f14aa",content,!0,{sourceMap:!1})},216:function(t,e,n){"use strict";var o=n(215);n.n(o).a},217:function(t,e,n){(t.exports=n(38)(!1)).push([t.i,"html[data-v-2fe70811]{width:100vw;height:100vh}*[data-v-2fe70811]{box-sizing:border-box}.page[data-v-2fe70811]{font-family:Montserrat,sans-serif;background:#f6f5f7;display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh}h1[data-v-2fe70811]{font-weight:700;margin:0}p[data-v-2fe70811]{font-size:14px;line-height:20px;letter-spacing:.5px;margin:20px 0 30px}span[data-v-2fe70811]{font-size:12px}a[data-v-2fe70811]{color:#333;font-size:14px;text-decoration:none;margin:15px 0}.dowebok[data-v-2fe70811]{background:#fff;border-radius:10px;box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);position:relative;overflow:hidden;width:768px;max-width:100%;min-height:480px}.form-container form[data-v-2fe70811]{background:#fff;display:flex;flex-direction:column;padding:0 50px;height:100%;justify-content:center;align-items:center;text-align:center}.social-container[data-v-2fe70811]{margin:20px 0}.social-container a[data-v-2fe70811]{border:1px solid #ddd;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;margin:0 5px;height:40px;width:40px}.social-container a[data-v-2fe70811]:hover{background-color:#eee}.form-container input[data-v-2fe70811]{background:#eee;border:none;padding:12px 15px;margin:8px 0;width:100%;outline:none}button[data-v-2fe70811]{border-radius:20px;border:1px solid #ff4b2b;background:#ff4b2b;color:#fff;font-size:12px;font-weight:700;padding:12px 45px;letter-spacing:1px;text-transform:uppercase;transition:transform 80ms ease-in;cursor:pointer}button[data-v-2fe70811]:active{transform:scale(.95)}button[data-v-2fe70811]:focus{outline:none}button.ghost[data-v-2fe70811]{background:transparent;border-color:#fff}.form-container[data-v-2fe70811]{position:absolute;top:0;height:100%;transition:all .6s ease-in-out}.sign-in-container[data-v-2fe70811]{left:0;width:50%;z-index:2}.sign-up-container[data-v-2fe70811]{left:0;width:50%;z-index:1;opacity:0}.overlay-container[data-v-2fe70811]{position:absolute;top:0;left:50%;width:50%;overflow:hidden;z-index:100}.overlay[data-v-2fe70811],.overlay-container[data-v-2fe70811]{height:100%;transition:transform .6s ease-in-out}.overlay[data-v-2fe70811]{background:#ff416c;background:linear-gradient(90deg,#ff4b2b,#ff416c) no-repeat 0 0/cover;color:#fff;position:relative;left:-100%;width:200%;transform:translateY(0)}.overlay-panel[data-v-2fe70811]{position:absolute;top:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 40px;height:100%;width:50%;text-align:center;transform:translateY(0);transition:transform .6s ease-in-out}.overlay-right[data-v-2fe70811]{right:0;transform:translateY(0)}.overlay-left[data-v-2fe70811]{transform:translateY(-20%)}.dowebok.right-panel-active .sign-in-container[data-v-2fe70811]{transform:translateY(100%)}.dowebok.right-panel-active .overlay-container[data-v-2fe70811]{transform:translateX(-100%)}.dowebok.right-panel-active .sign-up-container[data-v-2fe70811]{transform:translateX(100%);opacity:1;z-index:5}.dowebok.right-panel-active .overlay[data-v-2fe70811]{transform:translateX(50%)}.dowebok.right-panel-active .overlay-left[data-v-2fe70811]{transform:translateY(0)}.dowebok.right-panel-active .overlay-right[data-v-2fe70811]{transform:translateY(20%)}",""])},218:function(t,e,n){"use strict";n.r(e);var o={mounted:function(){var t=document.getElementById("signUp"),e=document.getElementById("signIn"),n=document.getElementById("dowebok");t.addEventListener("click",function(){n.classList.add("right-panel-active")}),e.addEventListener("click",function(){n.classList.remove("right-panel-active")})}},r=(n(216),n(16)),component=Object(r.a)(o,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page"},[n("div",{staticClass:"dowebok",attrs:{id:"dowebok"}},[n("div",{staticClass:"form-container sign-up-container"},[n("form",{directives:[{name:"stopsubmit",rawName:"v-stopsubmit"}],attrs:{action:"#"}},[n("h1",[t._v("注册")]),t._v(" "),t._m(0),t._v(" "),n("span",[t._v("或使用邮箱注册")]),t._v(" "),n("input",{attrs:{type:"text",placeholder:"姓名"}}),t._v(" "),n("input",{attrs:{type:"email",placeholder:"电子邮箱"}}),t._v(" "),n("input",{attrs:{type:"password",placeholder:"密码"}}),t._v(" "),n("button",[t._v("注册")])])]),t._v(" "),n("div",{staticClass:"form-container sign-in-container"},[n("form",{directives:[{name:"stopsubmit",rawName:"v-stopsubmit"}],attrs:{action:"#"}},[n("h1",[t._v("登录")]),t._v(" "),t._m(1),t._v(" "),n("span",[t._v("或使用您的帐号")]),t._v(" "),n("input",{attrs:{type:"email",placeholder:"电子邮箱"}}),t._v(" "),n("input",{attrs:{type:"password",placeholder:"密码"}}),t._v(" "),n("a",{attrs:{href:"#"}},[t._v("忘记密码?")]),t._v(" "),n("button",[t._v("登录")])])]),t._v(" "),t._m(2)])])},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"social-container"},[e("a",{staticClass:"social",attrs:{href:"#"}},[e("i",{staticClass:"fab fa-facebook-f"})]),this._v(" "),e("a",{staticClass:"social",attrs:{href:"#"}},[e("i",{staticClass:"fab fa-google-plus-g"})]),this._v(" "),e("a",{staticClass:"social",attrs:{href:"#"}},[e("i",{staticClass:"fab fa-linkedin-in"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"social-container"},[e("a",{staticClass:"social",attrs:{href:"#"}},[e("i",{staticClass:"fab fa-facebook-f"})]),this._v(" "),e("a",{staticClass:"social",attrs:{href:"#"}},[e("i",{staticClass:"fab fa-google-plus-g"})]),this._v(" "),e("a",{staticClass:"social",attrs:{href:"#"}},[e("i",{staticClass:"fab fa-linkedin-in"})])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"overlay-container"},[n("div",{staticClass:"overlay"},[n("div",{staticClass:"overlay-panel overlay-left"},[n("h1",[t._v("已有帐号?")]),t._v(" "),n("p",[t._v("请使用您的帐号进行登录")]),t._v(" "),n("button",{staticClass:"ghost",attrs:{id:"signIn"}},[t._v("登录")])]),t._v(" "),n("div",{staticClass:"overlay-panel overlay-right"},[n("h1",[t._v("没有帐号?")]),t._v(" "),n("p",[t._v("立即注册加入我们,和我们一起开始旅程吧")]),t._v(" "),n("button",{staticClass:"ghost",attrs:{id:"signUp"}},[t._v("注册")])])])])}],!1,null,"2fe70811",null);e.default=component.exports}}]); \ No newline at end of file diff --git a/docs/_nuxt/82f852f024858dd1c097.js b/docs/_nuxt/82f852f024858dd1c097.js new file mode 100644 index 0000000..34a791d --- /dev/null +++ b/docs/_nuxt/82f852f024858dd1c097.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1:function(t,e,n){"use strict";n.d(e,"i",function(){return m}),n.d(e,"j",function(){return v}),n.d(e,"a",function(){return x}),n.d(e,"o",function(){return y}),n.d(e,"e",function(){return w}),n.d(e,"f",function(){return _}),n.d(e,"c",function(){return O}),n.d(e,"n",function(){return j}),n.d(e,"h",function(){return C}),n.d(e,"p",function(){return k}),n.d(e,"k",function(){return R}),n.d(e,"m",function(){return P}),n.d(e,"d",function(){return S}),n.d(e,"b",function(){return T}),n.d(e,"g",function(){return N}),n.d(e,"l",function(){return D});n(69),n(26);var r=n(36),o=(n(95),n(145),n(146),n(28)),c=(n(148),n(150),n(151),n(154),n(52),n(37),n(5)),f=(n(75),n(20),n(13),n(50),n(51),n(27)),l=n(0);function d(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;i1&&void 0!==arguments[1]&&arguments[1];return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.components).map(function(r){return e&&e.push(n),t.components[r]})}))}function _(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.instances).map(function(r){return e&&e.push(n),t.instances[r]})}))}function O(t,e){return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.components).reduce(function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r},[])}))}function j(t){return Promise.all(O(t,function(){var t=Object(c.a)(regeneratorRuntime.mark(function t(e,n,r,o){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e||e.options){t.next=4;break}return t.next=3,e();case 3:e=t.sent;case 4:return r.components[o]=y(e),t.abrupt("return",r.components[o]);case 6:case"end":return t.stop()}},t)}));return function(e,n,r,o){return t.apply(this,arguments)}}()))}function C(t){return $.apply(this,arguments)}function $(){return($=Object(c.a)(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,j(e);case 4:return t.abrupt("return",h({},e,{meta:w(e).map(function(t,n){return h({},t.options.meta,{},(e.matched[n]||{}).meta)})}));case 5:case"end":return t.stop()}},t)}))).apply(this,arguments)}function k(t,e){return E.apply(this,arguments)}function E(){return(E=Object(c.a)(regeneratorRuntime.mark(function t(e,n){var c,f,l,d;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.context||(e.context={isStatic:!0,isDev:!1,isHMR:!1,app:e,store:e.store,payload:n.payload,error:n.error,base:"/",env:{baseUrl:"http://localhost:3000"}},n.req&&(e.context.req=n.req),n.res&&(e.context.res=n.res),n.ssrContext&&(e.context.ssrContext=n.ssrContext),e.context.redirect=function(t,path,n){if(t){e.context._redirected=!0;var r=Object(o.a)(path);if("number"==typeof t||"undefined"!==r&&"object"!==r||(n=path||{},path=t,r=Object(o.a)(path),t=302),"object"===r&&(path=e.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=U(path,n),window.location.replace(path),new Error("ERR_REDIRECT");e.context.next({path:path,query:n,status:t})}},e.context.nuxtState=window.__NUXT__),t.next=3,Promise.all([C(n.route),C(n.from)]);case 3:c=t.sent,f=Object(r.a)(c,2),l=f[0],d=f[1],n.route&&(e.context.route=l),n.from&&(e.context.from=d),e.context.next=n.next,e.context._redirected=!1,e.context._errored=!1,e.context.isHMR=Boolean(n.isHMR),e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{};case 15:case"end":return t.stop()}},t)}))).apply(this,arguments)}function R(t,e){return!t.length||e._redirected||e._errored?Promise.resolve():P(t[0],e).then(function(){return R(t.slice(1),e)})}function P(t,e){var n;return(n=2===t.length?new Promise(function(n){t(e,function(t,data){t&&e.error(t),n(data=data||{})})}):t(e))&&(n instanceof Promise||"function"==typeof n.then)||(n=Promise.resolve(n)),n}function S(base,t){var path=decodeURI(window.location.pathname);return"hash"===t?window.location.hash.replace(/^#\//,""):(base&&0===path.indexOf(base)&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash)}function T(t,e){return function(t){for(var e=new Array(t.length),i=0;i2?e-2:0),r=2;r1)return this.nuxtChildKey||Object(h.b)(this.$route.matched[0].path)(this.$route.params);var t=Object(R.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){return this.nuxt.err?t("NuxtError",{props:{error:this.nuxt.err}}):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}},S={name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout(function(){return t.startTimer()},this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),setTimeout(function(){t.show=!1,t.$nextTick(function(){t.percent=0,t.reversed=!1})},500),this},fail:function(){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval(function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100?(t.skipTimerCount=1,t.reversed=!t.reversed):t.percent<=0&&(t.skipTimerCount=1,t.reversed=!t.reversed)))},100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}},T=(n(160),Object(k.a)(S,void 0,void 0,!1,null,null,null).exports),N=(n(162),{components:{}}),D=(n(164),{_default:Object(k.a)(N,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"default layout"},[e("nuxt")],1)},[],!1,null,"e0d65c42",null).exports}),A={head:{title:"Beer",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"},{hid:"description",name:"description",content:"My primo Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"}],style:[],script:[]},render:function(t,e){var n=t("NuxtLoading",{ref:"loading"}),r=t(this.layout||"nuxt"),o=t("div",{domProps:{id:"__layout"},key:this.layoutName},[r]),c=t("transition",{props:{name:"layout",mode:"out-in"},on:{beforeEnter:function(t){window.$nuxt.$nextTick(function(){window.$nuxt.$emit("triggerScroll")})}}},[o]);return t("div",{domProps:{id:"__nuxt"}},[n,c])},data:function(){return{isOnline:!0,layout:null,layoutName:""}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){c.a.prototype.$nuxt=this,window.$nuxt=this,this.refreshOnlineStatus(),window.addEventListener("online",this.refreshOnlineStatus),window.addEventListener("offline",this.refreshOnlineStatus),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},computed:{isOffline:function(){return!this.isOnline}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(t){return t&&D["_"+t]||(t="default"),this.layoutName=t,this.layout=D["_"+t],this.layout},loadLayout:function(t){return t&&D["_"+t]||(t="default"),Promise.resolve(D["_"+t])}},components:{NuxtLoading:T}},L=(n(66),n(95),n(74));c.a.use(L.a);var M=["state","getters","actions","mutations"],I={};(I=function(t,e){if((t=t.default||t).commit)throw new Error("[nuxt] ".concat(e," should export a method that returns a Vuex instance."));return"function"!=typeof t&&(t=Object.assign({},t)),B(t,e)}(n(166),"store/index.js")).modules=I.modules||{},function(t,e){t=t.default||t;var n=e.replace(/\.(js|mjs|ts)$/,"").split("/"),r=n[n.length-1],o="store/".concat(e);if(t="state"===r?function(t,e){if("function"!=typeof t){console.warn("".concat(e," should export a method that returns an object"));var n=Object.assign({},t);return function(){return n}}return B(t,e)}(t,o):B(t,o),M.includes(r)){var c=r;H(z(I,n,{isProperty:!0}),t,c)}else{"index"===r&&(n.pop(),r=n[n.length-1]);for(var f=z(I,n),l=0,d=M;l2&&void 0!==arguments[2]?arguments[2]:{}).isProperty,r=void 0!==n&&n;if(!e.length||r&&1===e.length)return t;var o=e.shift();return t.modules[o]=t.modules[o]||{},t.modules[o].namespaced=!0,t.modules[o].modules=t.modules[o].modules||{},z(t.modules[o],e,{isProperty:r})}function H(t,e,n){e&&("state"===n?t.state=e||t.state:t[n]=Object.assign({},t[n],e))}n(62);for(var J=n(109),F=n.n(J),K=n(110),Q=n.n(K),X={setHeader:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=!0,o=!1,c=void 0;try{for(var f,l=(Array.isArray(n)?n:[n])[Symbol.iterator]();!(r=(f=l.next()).done);r=!0){var d=f.value;if(!e)return void delete this.defaults.headers[d][t];this.defaults.headers[d][t]=e}}catch(t){o=!0,c=t}finally{try{r||null==l.return||l.return()}finally{if(o)throw c}}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use(function(e){return t(e)||e})},onResponse:function(t){this.interceptors.response.use(function(e){return t(e)||e})},onRequestError:function(t){this.interceptors.request.use(void 0,function(e){return t(e)||Promise.reject(e)})},onResponseError:function(t){this.interceptors.response.use(void 0,function(e){return t(e)||Promise.reject(e)})},onError:function(t){this.onRequestError(t),this.onResponseError(t)}},V=function(){var t=G[W];X["$"+t]=function(){return this[t].apply(this,arguments).then(function(t){return t&&t.data})}},W=0,G=["request","delete","get","head","options","post","put","patch"];W0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map(function(t){return t.components.default}).filter(function(t){return"function"==typeof t&&!t.options&&!t.__prefetched})},prefetch:function(){if(this.canPrefetch()){c.unobserve(this.$el);var t=this.getPrefetchComponents(),e=!0,n=!1,r=void 0;try{for(var o,f=t[Symbol.iterator]();!(e=(o=f.next()).done);e=!0){var l=o.value,d=l();d instanceof Promise&&d.catch(function(){}),l.__prefetched=!0}}catch(t){n=!0,r=t}finally{try{e||null==f.return||f.return()}finally{if(n)throw r}}}}}}},72:function(t,e,n){"use strict";var r={};r.auth=n(142),r.auth=r.auth.default||r.auth,e.a=r}},[[112,4,1,5]]]); \ No newline at end of file diff --git a/docs/_nuxt/91a0b7356d49c51eeca2.js b/docs/_nuxt/91a0b7356d49c51eeca2.js deleted file mode 100644 index 73fce9d..0000000 --- a/docs/_nuxt/91a0b7356d49c51eeca2.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function r(data){for(var r,n,l=data[0],f=data[1],d=data[2],i=0,h=[];it.parts.length&&(n.parts.length=t.parts.length)}else{var o=[];for(r=0;r0?c.map(function(){return e(!1)}):e(!1))}};e.exports=r},,function(e,t,n){e.exports=n(184).default},function(e,t,n){var r=n(202),o=n(203)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var content=n(163);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(39).default)("290f013b",content,!0,{sourceMap:!1})},function(e,t,n){(e.exports=n(38)(!1)).push([e.i,'a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,main,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}[hidden]{display:none}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}',""])},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNetworkError=l,t.isRetryableError=v,t.isSafeRequestError=h,t.isIdempotentRequestError=y,t.isNetworkOrIdempotentRequestError=m,t.exponentialDelay=R,t.default=T;var r,o=n(185),f=(r=o)&&r.__esModule?r:{default:r};var c="axios-retry";function l(e){return!e.response&&Boolean(e.code)&&"ECONNABORTED"!==e.code&&(0,f.default)(e)}var d=["get","head","options"],E=d.concat(["put","delete"]);function v(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function h(e){return!!e.config&&(v(e)&&-1!==d.indexOf(e.config.method))}function y(e){return!!e.config&&(v(e)&&-1!==E.indexOf(e.config.method))}function m(e){return l(e)||y(e)}function x(){return 0}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=100*Math.pow(2,e);return t+.2*t*Math.random()}function _(e){var t=e[c]||{};return t.retryCount=t.retryCount||0,e[c]=t,t}function T(e,t){e.interceptors.request.use(function(e){return _(e).lastRequestTime=Date.now(),e}),e.interceptors.response.use(null,function(n){var r=n.config;if(!r)return Promise.reject(n);var o=function(e,t){return Object.assign({},t,e[c])}(r,t),f=o.retries,l=void 0===f?3:f,d=o.retryCondition,E=void 0===d?m:d,v=o.retryDelay,h=void 0===v?x:v,y=o.shouldResetTimeout,R=void 0!==y&&y,T=_(r);if(E(n)&&T.retryCount=o?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var f=Array(o);++r0?c.map(function(){return e(!1)}):e(!1))}};e.exports=r},110:function(e,t,n){e.exports=n(184).default},111:function(e,t,n){var r=n(203),o=n(204)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=o},162:function(e,t,n){var content=n(163);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(39).default)("290f013b",content,!0,{sourceMap:!1})},163:function(e,t,n){(e.exports=n(38)(!1)).push([e.i,'a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,main,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}[hidden]{display:none}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}',""])},184:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNetworkError=l,t.isRetryableError=v,t.isSafeRequestError=h,t.isIdempotentRequestError=y,t.isNetworkOrIdempotentRequestError=m,t.exponentialDelay=R,t.default=T;var r,o=n(185),f=(r=o)&&r.__esModule?r:{default:r};var c="axios-retry";function l(e){return!e.response&&Boolean(e.code)&&"ECONNABORTED"!==e.code&&(0,f.default)(e)}var d=["get","head","options"],E=d.concat(["put","delete"]);function v(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function h(e){return!!e.config&&(v(e)&&-1!==d.indexOf(e.config.method))}function y(e){return!!e.config&&(v(e)&&-1!==E.indexOf(e.config.method))}function m(e){return l(e)||y(e)}function x(){return 0}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=100*Math.pow(2,e);return t+.2*t*Math.random()}function _(e){var t=e[c]||{};return t.retryCount=t.retryCount||0,e[c]=t,t}function T(e,t){e.interceptors.request.use(function(e){return _(e).lastRequestTime=Date.now(),e}),e.interceptors.response.use(null,function(n){var r=n.config;if(!r)return Promise.reject(n);var o=function(e,t){return Object.assign({},t,e[c])}(r,t),f=o.retries,l=void 0===f?3:f,d=o.retryCondition,E=void 0===d?m:d,v=o.retryDelay,h=void 0===v?x:v,y=o.shouldResetTimeout,R=void 0!==y&&y,T=_(r);if(E(n)&&T.retryCount=o?e:r(e,t,n)}},189:function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var f=Array(o);++rt.parts.length&&(n.parts.length=t.parts.length)}else{var o=[];for(r=0;r1&&void 0!==arguments[1]&&arguments[1];return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.components).map(function(r){return e&&e.push(n),t.components[r]})}))}function _(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.instances).map(function(r){return e&&e.push(n),t.instances[r]})}))}function O(t,e){return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.components).reduce(function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r},[])}))}function j(t){return Promise.all(O(t,function(){var t=Object(c.a)(regeneratorRuntime.mark(function t(e,n,r,o){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e||e.options){t.next=4;break}return t.next=3,e();case 3:e=t.sent;case 4:return r.components[o]=y(e),t.abrupt("return",r.components[o]);case 6:case"end":return t.stop()}},t)}));return function(e,n,r,o){return t.apply(this,arguments)}}()))}function C(t){return k.apply(this,arguments)}function k(){return(k=Object(c.a)(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,j(e);case 4:return t.abrupt("return",h({},e,{meta:w(e).map(function(t,n){return h({},t.options.meta,{},(e.matched[n]||{}).meta)})}));case 5:case"end":return t.stop()}},t)}))).apply(this,arguments)}function $(t,e){return E.apply(this,arguments)}function E(){return(E=Object(c.a)(regeneratorRuntime.mark(function t(e,n){var c,f,l,d;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.context||(e.context={isStatic:!0,isDev:!1,isHMR:!1,app:e,store:e.store,payload:n.payload,error:n.error,base:"/website/",env:{baseUrl:"http://localhost:3000"}},n.req&&(e.context.req=n.req),n.res&&(e.context.res=n.res),n.ssrContext&&(e.context.ssrContext=n.ssrContext),e.context.redirect=function(t,path,n){if(t){e.context._redirected=!0;var r=Object(o.a)(path);if("number"==typeof t||"undefined"!==r&&"object"!==r||(n=path||{},path=t,r=Object(o.a)(path),t=302),"object"===r&&(path=e.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=U(path,n),window.location.replace(path),new Error("ERR_REDIRECT");e.context.next({path:path,query:n,status:t})}},e.context.nuxtState=window.__NUXT__),t.next=3,Promise.all([C(n.route),C(n.from)]);case 3:c=t.sent,f=Object(r.a)(c,2),l=f[0],d=f[1],n.route&&(e.context.route=l),n.from&&(e.context.from=d),e.context.next=n.next,e.context._redirected=!1,e.context._errored=!1,e.context.isHMR=Boolean(n.isHMR),e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{};case 15:case"end":return t.stop()}},t)}))).apply(this,arguments)}function R(t,e){return!t.length||e._redirected||e._errored?Promise.resolve():P(t[0],e).then(function(){return R(t.slice(1),e)})}function P(t,e){var n;return(n=2===t.length?new Promise(function(n){t(e,function(t,data){t&&e.error(t),n(data=data||{})})}):t(e))&&(n instanceof Promise||"function"==typeof n.then)||(n=Promise.resolve(n)),n}function S(base,t){var path=decodeURI(window.location.pathname);return"hash"===t?window.location.hash.replace(/^#\//,""):(base&&0===path.indexOf(base)&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash)}function T(t,e){return function(t){for(var e=new Array(t.length),i=0;i2?e-2:0),r=2;r1)return this.nuxtChildKey||Object(h.b)(this.$route.matched[0].path)(this.$route.params);var t=Object(R.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){return this.nuxt.err?t("NuxtError",{props:{error:this.nuxt.err}}):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}},S={name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout(function(){return t.startTimer()},this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),setTimeout(function(){t.show=!1,t.$nextTick(function(){t.percent=0,t.reversed=!1})},500),this},fail:function(){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval(function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100?(t.skipTimerCount=1,t.reversed=!t.reversed):t.percent<=0&&(t.skipTimerCount=1,t.reversed=!t.reversed)))},100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}},T=(n(160),Object($.a)(S,void 0,void 0,!1,null,null,null).exports),N=(n(162),{components:{}}),D=(n(164),{_default:Object($.a)(N,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"default layout"},[e("nuxt")],1)},[],!1,null,"e0d65c42",null).exports}),A={head:{title:"Beer",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"},{hid:"description",name:"description",content:"My primo Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"}],style:[],script:[]},render:function(t,e){var n=t("NuxtLoading",{ref:"loading"}),r=t(this.layout||"nuxt"),o=t("div",{domProps:{id:"__layout"},key:this.layoutName},[r]),c=t("transition",{props:{name:"layout",mode:"out-in"},on:{beforeEnter:function(t){window.$nuxt.$nextTick(function(){window.$nuxt.$emit("triggerScroll")})}}},[o]);return t("div",{domProps:{id:"__nuxt"}},[n,c])},data:function(){return{isOnline:!0,layout:null,layoutName:""}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){c.a.prototype.$nuxt=this,window.$nuxt=this,this.refreshOnlineStatus(),window.addEventListener("online",this.refreshOnlineStatus),window.addEventListener("offline",this.refreshOnlineStatus),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},computed:{isOffline:function(){return!this.isOnline}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(t){return t&&D["_"+t]||(t="default"),this.layoutName=t,this.layout=D["_"+t],this.layout},loadLayout:function(t){return t&&D["_"+t]||(t="default"),Promise.resolve(D["_"+t])}},components:{NuxtLoading:T}},L=(n(66),n(95),n(74));c.a.use(L.a);var M=["state","getters","actions","mutations"],I={};(I=function(t,e){if((t=t.default||t).commit)throw new Error("[nuxt] ".concat(e," should export a method that returns a Vuex instance."));return"function"!=typeof t&&(t=Object.assign({},t)),B(t,e)}(n(166),"store/index.js")).modules=I.modules||{},function(t,e){t=t.default||t;var n=e.replace(/\.(js|mjs|ts)$/,"").split("/"),r=n[n.length-1],o="store/".concat(e);if(t="state"===r?function(t,e){if("function"!=typeof t){console.warn("".concat(e," should export a method that returns an object"));var n=Object.assign({},t);return function(){return n}}return B(t,e)}(t,o):B(t,o),M.includes(r)){var c=r;H(z(I,n,{isProperty:!0}),t,c)}else{"index"===r&&(n.pop(),r=n[n.length-1]);for(var f=z(I,n),l=0,d=M;l2&&void 0!==arguments[2]?arguments[2]:{}).isProperty,r=void 0!==n&&n;if(!e.length||r&&1===e.length)return t;var o=e.shift();return t.modules[o]=t.modules[o]||{},t.modules[o].namespaced=!0,t.modules[o].modules=t.modules[o].modules||{},z(t.modules[o],e,{isProperty:r})}function H(t,e,n){e&&("state"===n?t.state=e||t.state:t[n]=Object.assign({},t[n],e))}n(62);for(var J=n(109),F=n.n(J),K=n(110),Q=n.n(K),X={setHeader:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=!0,o=!1,c=void 0;try{for(var f,l=(Array.isArray(n)?n:[n])[Symbol.iterator]();!(r=(f=l.next()).done);r=!0){var d=f.value;if(!e)return void delete this.defaults.headers[d][t];this.defaults.headers[d][t]=e}}catch(t){o=!0,c=t}finally{try{r||null==l.return||l.return()}finally{if(o)throw c}}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use(function(e){return t(e)||e})},onResponse:function(t){this.interceptors.response.use(function(e){return t(e)||e})},onRequestError:function(t){this.interceptors.request.use(void 0,function(e){return t(e)||Promise.reject(e)})},onResponseError:function(t){this.interceptors.response.use(void 0,function(e){return t(e)||Promise.reject(e)})},onError:function(t){this.onRequestError(t),this.onResponseError(t)}},V=function(){var t=G[W];X["$"+t]=function(){return this[t].apply(this,arguments).then(function(t){return t&&t.data})}},W=0,G=["request","delete","get","head","options","post","put","patch"];W0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map(function(t){return t.components.default}).filter(function(t){return"function"==typeof t&&!t.options&&!t.__prefetched})},prefetch:function(){if(this.canPrefetch()){c.unobserve(this.$el);var t=this.getPrefetchComponents(),e=!0,n=!1,r=void 0;try{for(var o,f=t[Symbol.iterator]();!(e=(o=f.next()).done);e=!0){var l=o.value,d=l();d instanceof Promise&&d.catch(function(){}),l.__prefetched=!0}}catch(t){n=!0,r=t}finally{try{e||null==f.return||f.return()}finally{if(n)throw r}}}}}}},72:function(t,e,n){"use strict";var r={};r.auth=n(142),r.auth=r.auth.default||r.auth,e.a=r}},[[112,4,1,5]]]); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 5e3ae96..5076866 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,11 +1,11 @@ - Beer + Beer
home -
+ diff --git a/docs/login/index.html b/docs/login/index.html index 50ce164..56d2857 100644 --- a/docs/login/index.html +++ b/docs/login/index.html @@ -1,9 +1,11 @@ - Beer + Beer -

已有帐号?

请使用您的帐号进行登录

没有帐号?

立即注册加入我们,和我们一起开始旅程吧

+
+ ppp{} +

已有帐号?

请使用您的帐号进行登录

没有帐号?

立即注册加入我们,和我们一起开始旅程吧

diff --git a/nuxt.config.js b/nuxt.config.js index 03fc91a..ad4d269 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -67,7 +67,7 @@ module.exports = { }, proxy: { // 跟下面的冲突了 - // '/api/': 'http://api.example.com' + '/api': 'http://47.244.111.211:3303/' }, styleResources: { // your settings here @@ -91,6 +91,6 @@ module.exports = { } }, serverMiddleware: [ - {path:'/api/auth', handler:'~/api/auth'} + // {path:'/api/auth', handler:'~/api/auth'} ] } diff --git a/pages/login/index.vue b/pages/login/index.vue index 6597df1..14d97d5 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -1,5 +1,6 @@