会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
2塘
生命本应极度清明而免于杂乱无章
七月七月
博客园
首页
新随笔
联系
订阅
管理
2020年10月20日
vue实现前进刷新后退不刷新
摘要: vue实现前进刷新后退不刷新,比如列表页进入详情页,详情页刷新,但是退回列表页,不刷新依旧是当前页码。 列表页: mounted() { this.getPageIndex(); }, methods: { getPageIndex() { if (sessionStorage.getItem('m
阅读全文
posted @ 2020-10-20 15:58 2塘
阅读(200)
评论(0)
推荐(0)
2020年8月31日
vconsole的使用
摘要: 移动端调试: npm i vconsole -D if (process.env.NODE_ENV 'development') { const VConsole = require('vconsole') // eslint-disable-next-line const my_console =
阅读全文
posted @ 2020-08-31 18:31 2塘
阅读(526)
评论(0)
推荐(0)
2020年3月16日
10.vue+elementUI+vue-cropper图片裁剪并上传
摘要: 最终达到这样的效果: 以下省略了一些简单的代码,比如组件引入等 1、引入element ui上传组件 <upload-img :pic="form.bgImage" @getUrlFn="getImgUrl" @modalShowFn="getModalStatus"></upload-img> 2
阅读全文
posted @ 2020-03-16 17:32 2塘
阅读(5094)
评论(4)
推荐(1)
2020年3月11日
9.git本地检出远程分支
摘要: 1.与远程仓库重新建立关系 git clone git@gitlab.名称.git 2.可以查看本地当前分支,为master git branch 3.本地创建分支,并检出想要的远程分支demo git branch orgin/demo git checkout orgin/demo 或者可以合并
阅读全文
posted @ 2020-03-11 09:53 2塘
阅读(863)
评论(0)
推荐(0)
8.git如何新建分支
摘要: 1.切换到基础分支,如主干 git checkout master 2.创建并切换到新分支demo git checkout -b demo 3.git branch查看已经在demo分支 4.更新分支代码并提交 git add * git commit -m "demo" git push ori
阅读全文
posted @ 2020-03-11 09:43 2塘
阅读(121)
评论(0)
推荐(0)
2020年2月19日
7.ios键盘消失后页面下方空白问题--vue
摘要: ios系统微信版存在bug,input框获取焦点后键盘弹出,页面被顶起,但键盘消失时,页面没有回弹,下面存在空白区域 在input标签中添加事件 @focus="getFocus('className')" 在methods中添加方法,手动让页面滚回到原来位置 getFocus (className
阅读全文
posted @ 2020-02-19 19:28 2塘
阅读(309)
评论(0)
推荐(0)
2020年1月17日
6.vue elementUI icon打包后不显示问题
摘要: vue+elementUI,icon打包后不显示,需要在build→utils.js文件中修改 1.找到build文件夹下utils.js文件 2.在以下代码片段中加入 publicPath: '../../' if (options.extract) { return ExtractTextPlu
阅读全文
posted @ 2020-01-17 14:57 2塘
阅读(1377)
评论(0)
推荐(0)
2020年1月3日
5.js blob下载文件流
摘要: 1 function downFile(content, fileName){ 2 const dom = document.createElement('a') // 隐藏的a标签,href为输出流 3 const blob = new Blob([content], { type: 'appli
阅读全文
posted @ 2020-01-03 17:30 2塘
阅读(1446)
评论(0)
推荐(0)
2019年12月26日
4.vue keep-alive实现前进刷新后退不刷新
摘要: App.vue 中meta对象的属性控制是否展示 1 <keep-alive> 2 <router-view v-if="$route.meta.keepAlive"></router-view> 3 </keep-alive> 4 <router-view v-if="!$route.meta.k
阅读全文
posted @ 2019-12-26 16:26 2塘
阅读(675)
评论(0)
推荐(0)
3.element ui upload上传图片组件
摘要: 引入组件 1 <upload-img :profile-url="shopProfile" @getShopProfileFn="getShopProfile" /> 定义方法 getShopProfile(url) { // url }, 组件内容 1 <template> 2 <div> 3 <
阅读全文
posted @ 2019-12-26 15:44 2塘
阅读(1022)
评论(0)
推荐(0)
下一页
公告