世界上最伟大的投资就是投资自己的教育
全场限时 5 折
所有回复
2019-11-29
-
不行!!我上传了简单代码https://github.com/wangyinwei1/Whitelabel-Error-Page.git
你可以 git clone https://github.com/wangyinwei1/Whitelabel-Error-Page.git
执行 yarn or npm i
yarn dev or npm run dev
修改
然后打开http://localhost:8080/然后按![](https://rails365.oss-cn-shenzhen.aliyuncs.com/uploads/photo/image/1765/2019/d2b5ca33bd970f64a6301fa75ae2eb22.png)13:42 -
对 wangyinwei1 · 大罗 回复
刷新页面他自己加的
exact 是精确匹配,有加 / 和没加 是有区别的,你去掉试试
13:24 -
对 wangyinwei1 · 大罗 回复
多了一个
/
11:12 -
11:10
2019-11-28
-
对 jiuli-gcy · 大罗 回复
请问老师什么时候开这个课程呀
我正在准备内容,差不多了就要出了,要先出后端的角色权限设计的
14:54 -
万人敬仰韩仙尊,杀人放火历飞雨!
历飞雨:我这辈子有韩仙尊这么个朋友,值了
韩立:兄弟我会让你扬名万千仙域的14:45 -
对 wangyinwei1 · 大罗 回复
那必须要清空数据。。那么每个组件退出都要清下 state,这样的动作可以放到全局上执行?怎么做?现在我用 ant design pro+umi 来做的可以有这样的操作吗?
在组件里做,生命周期里:componentWillUnmount
10:30 -
那必须要清空数据。。那么每个组件退出都要清下 state,这样的动作可以放到全局上执行?怎么做?现在我用 ant design pro+umi 来做的可以有这样的操作吗?
10:27 -
对 wangyinwei1 · 大罗 回复
https://s31.aconvert.com/convert/p3r68-cdx67/g7l85-nefcc.gif
如链接里的 gif,我改变 count ,之后切换页面回来之后 count 没有回复初始数据。
是不是每次卸载组件之前要清空下 state 里的所有数据???图片打不开了,没有刷新数据就一直在的,除非你改变了,或重新获取
10:25 -
https://s31.aconvert.com/convert/p3r68-cdx67/g7l85-nefcc.gif
如链接里的 gif,我改变 count ,之后切换页面回来之后 count 没有回复初始数据。
是不是每次卸载组件之前要清空下 state 里的所有数据???08:56 -
08:26
2019-11-27
-
对 随风 · 练气 回复
SecurityLayout 你自己写的,干嘛用的,你那个如果不影响,没必要就删除呀
可能是因为当时出教程时候的版本和现在版本不一样
我看到教程的源码没有 SecurityLayout
方便的话您可以拉一下最新版本的看一下。
11:01 -
10:55
-
SecurityLayout 中的 dispatch 不是我自己写的,创建项目的时候就有
只是因为登录时需要登录两次才能跳转所以才改成了 componentWillMount() {...}10:52 -
对 SALTED-FISH · 道祖 回复
SecurityLayout 你自己写的,干嘛用的,你那个如果不影响,没必要就删除呀
10:04 -
08:04
2019-11-26
-
对 studytm · 金仙 回复
直接 if (! valid) {
_next(new HttpException(UNPROCESSABLE_ENTITY,"User register input error",errors))
}会不会更好一点,这样就不需要 throw 后再 try catch 了看一下这个
import { NextFunction, Request, Response } from "express"; export const wrapAsync = ( fn: (req: Request, res: Response, next: NextFunction) => Promise<any> ) => { return function(req: Request, res: Response, next: NextFunction) { // Make sure to `.catch()` any errors and pass them along to the `next()` // middleware in the chain, in this case the error handler. fn(req, res, next).catch(next); }; };
export const getPost = wrapAsync( async (req: Request, res: Response): Promise<void> => { const { id } = req.params; const post = await Post.findById(id); if (post) { res.json({ success: true, data: { post } }); } else { throwPostNotFoundError(); } } );
22:58 -
遇到了
Uncaught TypeError: Cannot read property 'componentWillReact' of undefined
17:45 -
对 漫长 · 元婴 回复
基于 ant design pro v4 版本的 动态的权限 管理。
比如 根据数据库 控制 路由菜单的展示。
登录认证
鉴权 控制按钮级别的展示
就是 基于 pro 版本的 权限管理系统同求🌹
14:26
2019-11-25
2019-11-23
-
对 studytm · 金仙 回复
直接 if (! valid) {
_next(new HttpException(UNPROCESSABLE_ENTITY,"User register input error",errors))
}会不会更好一点,这样就不需要 throw 后再 try catch 了不好,throw 会退出的,后面就不执行了
11:06 -
直接 if (! valid) {
_next(new HttpException(UNPROCESSABLE_ENTITY,"User register input error",errors))
}会不会更好一点,这样就不需要 throw 后再 try catch 了11:04
© 汕尾市求知科技有限公司 | Rails365 Gitlab | Qiuzhi99 Gitlab | 知乎 | b 站 | 搜索
粤公网安备 44152102000088号 | 粤ICP备19038915号
Top