Category: Default
48 posts
解决el-scrollbar设置wrapClass参数并设定高度后,使用webpack打包后无法滚动的问题
如果使用`wrapClas`s设定class名并限定高度,在dev环境下正常,build环境下,height会变成100% 因此不能使用`wrapClass`,要直接定义class,用这个class名来限定高度 Read More
Comments: 0 Category: Default解决vue element-ui webpack 打包后css样式与原来不一致的问题
`main.js`中`import`和`use`的顺序很重要 有关element-ui的包要早引入 ```js import Vue from 'vue' import App from './App' import ElementUI from "element-ui"; import "element-ui/lib/theme-chalk/index.css"; Vue.use(ElementUI); Vue.use(VueAxios, axios); Vue.use(InfiniteLoading); ``` Read More
Comments: 0 Category: Defaultminio 使用 flask 流式上传下载
创建`OSS_minio.py`并定义`upload_stream`和`download_stream` ```py class OSS: # Create a client with the MinIO server playground, its access key # and secret key. def __init__(self, host, username, password, bucket): self.host = host self.client = Minio(... Read More
Comments: 0 Category: Defaultvue-cli 模板下载换源
```bash npm config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver ``` 成功后若继续在当前终端运行,需要继续输入 ```bash chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriver ``` 有些系统需要sudo才能使用`npm -g`,所以可以加上sudo以防以后遇到问题 ```bash sudo npm... Read More
Comments: 0 Category: Defaultnpm 换源
npm换源 ```bash npm config set registry https://registry.npm.taobao.org ``` 如果`npm -g`的时候必须要sudo,则换源时也要加上sudo ```bash sudo npm config set registry https://registry.npm.taobao.org ``` 查看是否换源成功 ```bash npm config get registry sudo npm config get registry ``` Read More
Comments: 0 Category: DefaultmacOS 安装 sshpass
由于安全策略,brew不能直接安装sshpass 也不能通过在线脚本安装 只能把安装脚本下载下来安装 下载脚本 ```bash wget https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb ``` 安装 ```bash brew install sshpass.rb ``` 删除脚本 ```bash rm sshpass.rb ``` 使用sshpass快捷远程登录... Read More
Comments: 0 Category: Default解决macOS Mojave 下使用pyenv安装的python无法使用tkinter的问题
安装`tcl-tk` ```bash brew install tcl-tk ``` 在`.zshrc`或`.bash_profile`增加语句 ```bash #tcl-tk export PIPENV_VENV_IN_PROJECT=1 export PATH="/usr/local/opt/tcl-tk/bin:$PATH" export LDFLAGS="-L/usr/local/opt/tcl-tk/lib" export... Read More
Comments: 0 Category: DefaultmacOS 安装pyenv
```bash brew install pyenv ``` 在用户目录下的`.zshrc`或`.bash_profile`增加语句 ```bash #pyenv export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" eval "$(pyenv init -)" ``` Read More
Comments: 0 Category: DefaultmacOS Word 粘贴无格式文本 宏
打开工具->宏->宏  输入宏名:粘贴无格式文本 然后点击加号  输入代码 ```vb Selection.PasteAndFormat (wdFormatPlainText) ```... Read More
Comments: 0 Category: DefaultmacOS python 3.7 报缺少lzma模块的错误解决方法
安装`xz`模块 ```bash brew install xz ``` 安装`backports.lzma` ```bash pip install backports.lzma ``` 更改python安装目录下的`lzma.py`(直接文件夹内搜索) 找到`import`的部分 ```py from backports.lzma import * from backports.lzma import _encode_filter_properties,... Read More
Comments: 0 Category: Default