上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页
摘要: 阅读全文
posted @ 2021-06-07 08:43 yw3692582 阅读(35) 评论(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 阅读(52) 评论(0) 推荐(0)
摘要: <input id="input" type="text" /> input { caret-color: red; } 阅读全文
posted @ 2021-06-04 09:05 yw3692582 阅读(118) 评论(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 阅读(30) 评论(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 阅读(188) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-05-28 16:21 yw3692582 阅读(30) 评论(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 阅读(210) 评论(0) 推荐(0)
摘要: 在组件中添加 name 属性: 在router-view(v-if="isRouterAlive" 不用写,我是出于业务需要才加的): 注意:如果不用 include,将默认所有通过 router-view 的渲染的页面都被缓存,而使用 include 则代表 name 属性相匹配的组件被缓存。 阅读全文
posted @ 2021-05-21 09:02 yw3692582 阅读(218) 评论(0) 推荐(0)
摘要: 子组件: <template> <div> <!-- 树结构 --> <el-tree :data="treeData" @node-click="handleNodeClick" :default-expand-all="true" :props="defaultProps" > </el-tre 阅读全文
posted @ 2021-05-20 11:21 yw3692582 阅读(283) 评论(0) 推荐(0)
摘要: store.jsimport Vue from 'vue' import axios from 'axios' import Vuex from 'vuex' Vue.use(Vuex) const store = new Vuex.Store({ state: { userData: JSON.p 阅读全文
posted @ 2021-05-13 12:46 yw3692582 阅读(47) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页