04 2018 档案

摘要:import axios from 'axios' // axios基本配置 axios.defaults.timeout = 5000 axios.defaults.baseURL = 'http://192.168.1.8:8500' axios.defaults.withCredentials 阅读全文
posted @ 2018-04-20 17:19 -http 阅读(221) 评论(0) 推荐(0) 编辑
摘要://搜索功能 搜索 //子组件 methods:{ search(){ this.$router.push({ path:'/路由',query: { kw: this.keywords}}); } } //父组件 computed: { //计算属性 keywords: function () { 阅读全文
posted @ 2018-04-19 18:14 -http 阅读(280) 评论(0) 推荐(0) 编辑
摘要:v for(循环): v for="(item,index) in sort" v bind:key="item.id" 图片渲染: created() //钩子函数 methods: //执行方法 组件渲染: import xxx from ' xxxxx' export default{ com 阅读全文
posted @ 2018-04-19 17:31 -http 阅读(281) 评论(0) 推荐(0) 编辑
摘要:位置:config/ index.js 在dev中添加以下代码 proxyTable: { '/aaa': { //遇到已aaa开头的将替换为 target 的内容 target: 'http://192.168.1.8:8500', changeOrigin: true //是否解决跨域 }, } 阅读全文
posted @ 2018-04-19 17:18 -http 阅读(130) 评论(0) 推荐(0) 编辑
摘要://声明局部作用域 .color{ color:red !important //字体红色优先级大于内联样式 } 阅读全文
posted @ 2018-04-19 17:12 -http 阅读(156) 评论(0) 推荐(0) 编辑
摘要:tab切换: <html> <div class="class-list"> <div class="name">品牌分类:</div> <!--<span class="first-select select">全部</span>--> <span @click="companyType(inde 阅读全文
posted @ 2018-04-12 16:36 -http 阅读(129) 评论(0) 推荐(0) 编辑