09 2018 档案

摘要:目前主流的 Vue 项目,都选择 axios 来完成 ajax 请求,而大型项目都会使用 Vuex 来管理数据。 前言: 使用 cnpm 安装 axios 安装其他插件的时候,可以直接在 main.js 中引入并 Vue.use(),但是 axios 并不能 use,只能每个需要发送请求的组件中即时 阅读全文
posted @ 2018-09-19 18:00 歪歪豆豆 阅读(215) 评论(0) 推荐(0)
摘要:<template><div><div class="navbox"><div class="nav" id="navbox"><mt-button size="small" v-for="(tab, i) in tabs" :class="{active01:tab.hasactive}" @cl 阅读全文
posted @ 2018-09-19 15:56 歪歪豆豆 阅读(187) 评论(0) 推荐(0)
摘要:<template> <div> <div class="navbox"> <div class="nav"> <mt-button size="small" v-for="(tab, i) in tabs" :class="{active01:tab.hasactive}" @click="for 阅读全文
posted @ 2018-09-18 14:24 歪歪豆豆 阅读(200) 评论(0) 推荐(0)