随笔分类 -  vue前端

摘要:1.vue-cli脚手架创建一个vue项目 2.安装reverse-sourcemap npm install --global reverse-sourcemap 3.一个一个的还原.map文件 reverse-sourcemap -o aaa(存入的目录) -v app.9fbea7c7.js. 阅读全文
posted @ 2022-03-29 10:27 睁yan-ii 阅读(701) 评论(0) 推荐(0) 编辑
摘要:参考地址:https://www.jianshu.com/p/629315e51d99 打开项目根目录的 package.json,然后找到scripts,如果你是希望在 npm run dev 的时候 内网可以方访问,那么你再 scripts下的dev 结尾增加一个参数 --host 192.16 阅读全文
posted @ 2021-08-18 15:38 睁yan-ii 阅读(355) 评论(0) 推荐(0) 编辑
摘要:1 后端传过来的是列表数据但是两边有双引号(str) JSON.parse() 阅读全文
posted @ 2021-08-13 11:04 睁yan-ii 阅读(334) 评论(0) 推荐(0) 编辑
摘要:<div> <label>添加审批类型</label> <a-select v-model="editData.approvetype" style="width: 100%" placeholder="Please select" @change="handleChange02" > <a-sel 阅读全文
posted @ 2020-12-28 19:31 睁yan-ii 阅读(311) 评论(0) 推荐(0) 编辑
摘要:<template> <section> <h1>hello world~</h1> </section> </template> <script> export default { data() { return { timer: '', value: 0 }; }, methods: { get 阅读全文
posted @ 2020-12-23 19:26 睁yan-ii 阅读(2468) 评论(0) 推荐(0) 编辑
摘要:html <div class="button"><van-button type="info" v-show="show" @click="getCode">获取验证码</van-button><van-button type="info" v-show="!show" class="count" 阅读全文
posted @ 2020-12-18 21:07 睁yan-ii 阅读(1563) 评论(0) 推荐(0) 编辑
摘要:js v-if 判断 <div v-if="suborder.approve_user==user_id || suborder.approve_userrole_id in roles" > 重组装列表 roles:[ { "roles__name": "Boss", "roles__id": 1 阅读全文
posted @ 2020-12-02 21:54 睁yan-ii 阅读(1419) 评论(0) 推荐(0) 编辑
摘要:var students=[ {name: "vehicleTravelLicenseCopyBack", id: "a1"}, {name: "vehicleTravelLicenseCopyFront", id: "a2"}, {name: "idCardBack", id: "a3"}, {n 阅读全文
posted @ 2020-11-29 19:39 睁yan-ii 阅读(2278) 评论(0) 推荐(0) 编辑
摘要:1 共同页面 <template> <a-menu theme="dark" mode="inline" :default-selected-keys="defaulted"> <a-menu-item key="1"> <a-icon type="user"/> <!-- <a href="">< 阅读全文
posted @ 2020-11-08 15:48 睁yan-ii 阅读(145) 评论(0) 推荐(0) 编辑
摘要:1 登录后在sessionStorage中添加token的值,退出后清空 登录后在sessionStorage中添加token的值,退出后清空 localStorage 和 sessionStorage 属性允许在浏览器中存储 key/value 对的数据。 sessionStorage 用于临时保 阅读全文
posted @ 2020-10-28 16:53 睁yan-ii 阅读(7139) 评论(0) 推荐(0) 编辑
摘要:1 格式 <template> <div> <center><h1>这是·注册页面</h1></center> <a-form-item label="用户名" v-bind="formlayout"> <a-input v-model="username"/> </a-form-item > <a 阅读全文
posted @ 2020-10-27 21:56 睁yan-ii 阅读(751) 评论(0) 推荐(0) 编辑
摘要:this.$router.push({path:'/shop',query:{ goods_name:goods_name, goods_price:goods_price, uid:goods_price }}) 获取路由值 return{ uid:sessionStorage.getItem(' 阅读全文
posted @ 2020-10-23 19:01 睁yan-ii 阅读(1607) 评论(0) 推荐(1) 编辑
摘要:1. 始vue化项目 vue init webpack deaxios # 使用脚手架创建项目 deaxios(项目名,随便取得) cd deaxios # 进入项目cnpm install npm install axios -S # 安装axios 2.封装axios 2.1 src文件夹下新建 阅读全文
posted @ 2020-10-14 07:43 睁yan-ii 阅读(1466) 评论(0) 推荐(0) 编辑
摘要:1.vue微博回调空页面 注:微博回调空页面为: http://127.0.0.1:8888/oauth/callback/ 1.1 页面路径 components\oauth.vue <template> <div> <p>跳转中....</p> </div> </template> <scrip 阅读全文
posted @ 2020-10-10 22:43 睁yan-ii 阅读(127) 评论(0) 推荐(0) 编辑
摘要:前端函数如下,js方法代码无需更改,前端代码逻辑在components\common\lab_header.vue 只需要修改components\axios_api\http.js中调用的后端地址 // axios.defaults.baseURL = "http://127.0.0.1:8000 阅读全文
posted @ 2020-10-08 16:49 睁yan-ii 阅读(507) 评论(0) 推荐(0) 编辑
摘要:前端函数如下,js方法代码无需更改,前端代码逻辑在components\common\lab_header.vue 只需要修改components\axios_api\http.js中调用的后端地址 // axios.defaults.baseURL = "http://127.0.0.1:8000 阅读全文
posted @ 2020-10-08 07:52 睁yan-ii 阅读(140) 评论(0) 推荐(0) 编辑
摘要:1组件定义 1.定义组件并引用 2.父组件向子组件传值 3.子组件向父组件传值 #组件间传值:vuex (https://www.cnblogs.com/xiaonq/p/9697921.html) 1.1 什么是组件 Html中有组件,是一段可以被复用的结构代码 Css中有组件,是一段可以被复用的 阅读全文
posted @ 2020-09-29 17:00 睁yan-ii 阅读(476) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示