上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页
摘要: 1 <template> 2 <div> 3 <el-button style="float:left;margin-left:20px;" type="primary" @click="add_dialogVisible = true" 4 >新增用户</el-button 5 > 6 <el-t 阅读全文
posted @ 2021-06-09 10:23 yw3692582 阅读(661) 评论(0) 推荐(0)
摘要: // 根组件/父路由 <template> <div class="layout"> <el-container> <el-header> 头部代码 </el-header> <el-main> <router-view v-if="isRouterAlive" /> </el-main> </el 阅读全文
posted @ 2021-06-09 10:18 yw3692582 阅读(45) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-06-07 08:43 yw3692582 阅读(36) 评论(0) 推荐(0)
摘要: <template> <div id="bg_img"> <img src="/static/img/pexels-pixabay-209831.jpg" alt="叠加图片" height="100%" width="100%" /> </div> </template> <script> exp 阅读全文
posted @ 2021-06-04 09:24 yw3692582 阅读(54) 评论(0) 推荐(0)
摘要: <input id="input" type="text" /> input { caret-color: red; } 阅读全文
posted @ 2021-06-04 09:05 yw3692582 阅读(127) 评论(0) 推荐(0)
摘要: // 第一种:grid布局 <div id="bg_img"> <div> <input type="text" /> </div> </div> // css #bg_img{ display: grid; place-items: center; height:100vh; // 必须设置高度 阅读全文
posted @ 2021-06-04 09:02 yw3692582 阅读(37) 评论(0) 推荐(0)
摘要: // store.js import Vue from "vue"; import Vuex from "vuex"; Vue.use(Vuex); const moduleA = { namespaced: true, state: () => ({ name: "moduleA", }), mu 阅读全文
posted @ 2021-06-02 09:20 yw3692582 阅读(197) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-05-28 16:21 yw3692582 阅读(35) 评论(0) 推荐(0)
摘要: 首先封装 axios.js: // 引入 axios 和 qs(qs选择性引入) import axios from 'axios' import qs from 'qs' // 请求拦截:可以在header中统一添加token axios.interceptors.request.use( con 阅读全文
posted @ 2021-05-25 12:49 yw3692582 阅读(215) 评论(0) 推荐(0)
摘要: 在组件中添加 name 属性: 在router-view(v-if="isRouterAlive" 不用写,我是出于业务需要才加的): 注意:如果不用 include,将默认所有通过 router-view 的渲染的页面都被缓存,而使用 include 则代表 name 属性相匹配的组件被缓存。 阅读全文
posted @ 2021-05-21 09:02 yw3692582 阅读(224) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页