vue+axios+flask+minio 流式下载

前端 js download(fileName) { this.axios .post( "/post/download", { content: fileName }, { responseType: "blob" } ) .then((response) => { let blob = new Blob([response.data]); let url = URL.createObjectURL(blob); var eleLink =... Read More

Comments: 0   Category: Default

解决el-scrollbar设置wrapClass参数并设定高度后,使用webpack打包后无法滚动的问题

如果使用wrapClass设定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: Default

minio 使用 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( host,... Read More

Comments: 0   Category: Default

Android x86 镜像

地址 Read More

Comments: 0   Category: Sundry

macOS majave 安装 VMware Fusion 11

下载安装包 序列号 7HYY8-Z8WWY-F1MAN-ECKNY-LUXYX Read More

Comments: 0   Category: Sundry

vue-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 config set... Read More

Comments: 0   Category: Default

npm 换源

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: Default

macOS 安装 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 PIPENVVENVINPROJECT=1 export PATH="/usr/local/opt/tcl-tk/bin:$PATH" export LDFLAGS="-L/usr/local/opt/tcl-tk/lib" export CPPFLAGS="-I/usr/local/opt/tcl-tk/include" export... Read More

Comments: 0   Category: Default