摘要:
###参考资料: https://segmentfault.com/a/1190000018422882 https://www.yuque.com/ant-design/course/ig6mzb ###/services/ant-design-pro/register.js import { C 阅读全文
摘要:
###修改后端地址 \src\consts\config.js export const CONFIG = { URL: 'http://localhost:7777', ROLE: { 0: 'user', 1: 'admin', 2: 'superAdmin' } } ###/services/ 阅读全文
摘要:
###引入 DVA export default { plugins: [ ['umi-plugin-react', { antd: true, dva: true, }], ], // ... } ###新建src/models/register.js export default { names 阅读全文
摘要:
###第一个组件: export default () => { return <div>hello world</div>; } ###React 组件语法 import React from 'react'; class ShoppingList extends React.Component 阅读全文
摘要:
###新建src/pages/Request.js import React from 'react'; export default () => { return ( <div>临时用</div> ); } ###修改config/routes.js path:路径 component:组件,js 阅读全文
摘要:
###背景 因为websocket请求/返回均需要处理字节流 现返回基本能正常处理,但请求字段及加密方式与业务紧密相关,抓着开发大佬问了几遍,有点头疼 ###Python 中的 struct 模块 ####pack 操作 Pack 操作必须接受一个 template string 以及需要进行 pa 阅读全文
摘要:
###使用npm安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org ###安装yarn cnpm install -g yarn ###安装Umi cnpm install -g umi ###安装项目 http 阅读全文