摘要:
一、下载(pyinstaller) pip install pyinstaller 二、生成spec文件 pyi-makespec -D manage.py 三、swagger依赖 1、配置静态文件 # settings.py STATIC_URL = '/static/' STATICFILES_ 阅读全文
摘要:
proxy: { [process.env.VUE_APP_BASE_API + '/admin']: { target: 'http://39.98.123.211:8170', changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_A 阅读全文
摘要:
一、设置 main.js // 1.引入 import * as API from '@/api'; new Vue({ render: h => h(App), beforeCreate() { Vue.prototype.$bus = this // 2.原型 Vue.prototype.$AP 阅读全文
摘要:
一、复制conda环境 1、下载conda-pack(base环境) pip install conda-pack 2、查看conda环境 conda env list 3、切换打包conda环境 conda activate env_name 4、打包conda环境 conda pack -n e 阅读全文
摘要:
<div ref="test"></div> // 获取DOM this.$ref.test 阅读全文
摘要:
1、创建环境 conda create -n 环境名 python=版本 2、切换环境 conda activate 环境名 3、导入 pip install -r requirements.txt 4、生成 pip freeze > requirements.txt 阅读全文
摘要:
实用 # 配置文件 .DS_Store .idea/ # 编译文件 __pycache__/ *.py[cod] *$py.class # Django 项目中的日志文件和本地配置文件 *.log local_settings.py db.sqlite3 db.sqlite3-journal # 虚 阅读全文
摘要:
生成x-y Math.round(Math.random()*(y-x)+x) 阅读全文
摘要:
1、安装nvm控制node版本 2、下载安装nvm https://nvm.uihtm.com/ 3、清缓存,删依赖,重新下载 npm cache clean --force rm -rf node_modules rm package-lock.json npm install 阅读全文
摘要:
1、全局api Vue.config.xxx app.config.xxx Vue.component app.component Vue.directive app.directive Vue.mixin app.mixin Vue.use app.use Vue.prototype app.co 阅读全文