上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: //全局过滤器 Vue.filter('dateFormat', function(originVal) { const dt = new Date(originVal) const y = dt.getFullYear() const m = (dt.getMonth() + 1 + '').pa 阅读全文
posted @ 2020-09-17 17:30 聂小恶 阅读(300) 评论(0) 推荐(0) 编辑
摘要: https://www.bilibili.com/video/BV1bE411p7As?p=29 视频教程 //创建本地user分支,并上传的云端 git branch 查看所有分支 git checkout -b user 新建分支user,并且切换到user分支上 git status 查看本地 阅读全文
posted @ 2020-08-14 11:30 聂小恶 阅读(477) 评论(0) 推荐(0) 编辑
摘要: data() { var validatePass = (rule, value, callback) => { if (value '') { callback(new Error('请输入密码')) } else { if (this.form.checkPass !== '') { this. 阅读全文
posted @ 2020-08-13 16:53 聂小恶 阅读(1226) 评论(0) 推荐(0) 编辑
摘要: <el-main> <!-- 路由占位符 显示子路由内容 --> <router-view></router-view> </el-main> 路由设置: { path: '/home', component: Home, redirect: '/welcome', //重定向到子路由 childr 阅读全文
posted @ 2020-08-12 10:49 聂小恶 阅读(1958) 评论(0) 推荐(0) 编辑
摘要: 需求: 需要授权的API,必须在请求头中使用Authorization字段提供token令牌(登录接口不需要) 实现方法:(请求拦截器,预处理设置token) 在发送请求前,设置token,代码如下 阅读全文
posted @ 2020-08-11 17:34 聂小恶 阅读(1145) 评论(0) 推荐(0) 编辑
摘要: //去除默认的字符串双引号,代码已封号结尾 新建 .prettierrc.json { "singleQuote": true, "semi": false } ok,以上变解决了哈 这里是相关知识 .eslintrc.js rules中设置规则: "off" 或 0 - 关闭这个规则检查 "war 阅读全文
posted @ 2020-08-10 18:26 聂小恶 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-08-10 18:18 聂小恶 阅读(9789) 评论(0) 推荐(0) 编辑
摘要: import Vue from 'vue' import VueRouter from 'vue-router' import Login from '../components/Login.vue' import Home from '../components/Home.vue' Vue.use 阅读全文
posted @ 2020-08-10 18:07 聂小恶 阅读(931) 评论(0) 推荐(0) 编辑
摘要: //请求后台配置 import axios from 'axios' axios.defaults.baseURL = 'http://127.0.0.1:8888/api/private/v1/' Vue.prototype.$http = axios 发送请求(接口名:login,请求类型:po 阅读全文
posted @ 2020-08-05 10:15 聂小恶 阅读(310) 评论(0) 推荐(0) 编辑
摘要: #xx{ position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);} transform属性应用于元素的2D或3D转换,这个属性允许你将元素旋转,缩放,移动,倾斜等。 讲解:https://www.runoo 阅读全文
posted @ 2020-07-24 11:01 聂小恶 阅读(2275) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页