05 2020 档案
摘要:import { history } from 'umi'; 以下的不正确,更换成了 history
阅读全文
摘要:name 值 需要为 数组 file[] (单图时只需要 file) content-type 类型为 : form-data
阅读全文
摘要:子组件 actionHandle(type, record) { this.$emit('action', type, record, bool => { if (bool) { alert('success!') this.getTableData() } }) }, 父组件 onAction(t
阅读全文
摘要:场景描述 1.后台用laravel 监听的 80 端口,前端页面用 blade 模板生产, laravel 路由访问 (www.main.com) 2.后端用 ant-design-pro, 构建后 用 express 部署, pm2 守护进程,在 5050 端口启动 3.子域名 admin.mai
阅读全文
摘要:Exceptions/handle protected function unauthenticated($request, AuthenticationException $exception) { if(!$request->expectsJson()){ return response()->
阅读全文
摘要:1.执行命令: git config --global credential.helper store 这个时候~/.gitconfig文件中会多一行 [credential]helper = store 2.再次执行git pull 输入账号密码 此时你会看到/root/.git-credenti
阅读全文
摘要:Invalid prop: custom validator check failed for prop "pagination". this.pagination = { ...this.pagination, total: res.data.totalCount } 错误原因: res.data
阅读全文