The pit in actual combat ant design pro

1. Foreplay:

1, replace the mock data:

1.将:.roadhogrc.mock.js 中的代理模式替换
当不使用代理的时候就会将所有 /api/*的链接换成 http://localhost:8080/
export default noProxy ? {'GET /api/*':'http://localhost:8080/'} : delay(proxy, 1000);
2.启动: 
window:npm run start:no-proxy
其他系统没试

pit

1. Can't turn pages. what? What the hell is this not setting the key? I looked through the case and couldn't find the key, https://gist.github.com/xgqfrms-gildata/36be904c705bfe4952122b6d2e63357c . Erase, the table data must set the key attribute.

Change the id returned by the server to the key.

Warning: Each record in dataSource of table should have a unique `key` prop, or set `rowKey` to an unique primary key,see https://u.ant.design/table-row-key
index.js:2177
Warning: Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325111631&siteId=291194637