2020年5月11日

摘要: :root { --safe-area-inset-top: 0; --safe-area-inset-bottom: 0; } @supports (width: constant(safe-area-inset-top)) { :root { --safe-area-inset-top: con 阅读全文

posted @ 2020-05-11 16:56 勤勤恳恳大猿人 阅读(150) 评论(0) 推荐(0) 编辑

2020年1月13日

摘要: 今天,无意打开vue-cli 3.0 UI控制台 闲来无事,看看了源码学到一手组件的动态加载,分享大家 /** * We register all the components so future cli-ui plugins * could use them directly */ import 阅读全文

posted @ 2020-01-13 11:35 勤勤恳恳大猿人 阅读(352) 评论(0) 推荐(0) 编辑

2019年12月18日

摘要: 今天在新clone的一个项目里,打包报如下错: 反复重新安装依赖,发现无济于事,可同事的机器运行不报错 检查代码发现: const {spawn} = require('promisify-child-process'); Node.sj spawn函数可以用于调用系统上的命令,如在 Linux, 阅读全文

posted @ 2019-12-18 17:18 勤勤恳恳大猿人 阅读(2764) 评论(0) 推荐(0) 编辑

2019年12月10日

摘要: <Select style={{ width: 120 }} value={this.state.aa} onChange={this.handleChangeVCharge}> <Option value="0">aa</Option> <Option value="1">bb</Option> 阅读全文

posted @ 2019-12-10 11:54 勤勤恳恳大猿人 阅读(4963) 评论(0) 推荐(0) 编辑

2019年12月6日

摘要: react路由跳转: 1.DOM跳转 <Link href={`/device/list`} to={`/device/add`}></Link> 2.js跳转 this.props.history.push("/device/add") 具体路由跳转细节,请自行百度 问题: 父组件: <TabPa 阅读全文

posted @ 2019-12-06 11:58 勤勤恳恳大猿人 阅读(3514) 评论(0) 推荐(0) 编辑

2019年11月26日

摘要: 控制台报错: vue.runtime.esm.js?2b0e:619 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-ren 阅读全文

posted @ 2019-11-26 15:50 勤勤恳恳大猿人 阅读(1740) 评论(0) 推荐(0) 编辑

2019年11月22日

摘要: 1.查看当前地址 2.设置远程地址 3.再次确认 git remote -v 4.SSH 密钥 阅读全文

posted @ 2019-11-22 15:35 勤勤恳恳大猿人 阅读(144) 评论(0) 推荐(0) 编辑

2019年11月20日

摘要: clipboard.js是什么,能干什么? 复制文字到剪切板不应该很难去实现。它不需要配置几十个步骤或者加载几百 KB 的文件。最重要的是,它不应该依赖 Flash 或其他臃肿的框架。 这是 clipboard.js 诞生的原因。 具体使用参考:http://www.clipboardjs.cn/ 阅读全文

posted @ 2019-11-20 11:30 勤勤恳恳大猿人 阅读(1273) 评论(0) 推荐(0) 编辑

摘要: 最近准备做一个离线升级工具,想起前几天刚接触的Electron 决定用它与python相结合来完成 开始准备环境搭建 几经折腾各种zerorpc,zerormq各种报错 历经一天多的网上折腾终于找到一篇实践成功 先看整个流程搭建: start | V + + | | start | + > + + 阅读全文

posted @ 2019-11-20 10:46 勤勤恳恳大猿人 阅读(2954) 评论(1) 推荐(0) 编辑

2019年11月14日

摘要: 处理反复点击,以及错误拦截 import axios from 'axios' import { API } from '@commons/constants' import isEmpty from 'lodash/isEmpty' const Service = { API: API, REQU 阅读全文

posted @ 2019-11-14 16:48 勤勤恳恳大猿人 阅读(252) 评论(0) 推荐(0) 编辑