摘要:
outer.beforeEach()一般用来做一些进入页面的限制。 比如没有登录, 就不能进入某些页面,只有登录了之后才有权限查看某些页面。。。说白了就是路由拦截。第一步 规定进入路由需不需要权限 @/router/index.js import A from '@/components/a' { 阅读全文
posted @ 2019-12-04 17:35
Mr_Riven
阅读(14544)
评论(0)
推荐(0)
摘要:
前端(1) post methods:{ doLogin:function(){ this.username this.password this.$axios.request({ url:'http://127.0.0.1:8000/api/v1/auth/', method:'POST', da 阅读全文
posted @ 2019-12-04 13:28
Mr_Riven
阅读(138)
评论(0)
推荐(0)
摘要:
<template> <div> <img :src="detail.img" /> <h1>{{ detail.title }}</h1> <h3>{{detail.slogon }}</h3> <h5>{{ detail.level }}</h5> <p>{{ detail.why }}</p> 阅读全文
posted @ 2019-12-04 11:34
Mr_Riven
阅读(1348)
评论(0)
推荐(0)
摘要:
1. 建立在tcp之上 2.一次请求一次响应然后断开连接(无状态短连接) 请求和响应 发送: 请求头 \r\n\r\n 请求体 host:www.baidu.com\r\n\ content-type:application/json \r\n\r\n请求体 响应:响应头\r\n\r\n响应体 阅读全文
posted @ 2019-12-04 08:11
Mr_Riven
阅读(429)
评论(0)
推荐(0)

浙公网安备 33010602011771号