-
## 遇到的问题:
在项目中使用dva,想使用dva中的routerRedux.push方法,于是在entry文件中引入了ConnectedRouter,实现了routerRedux.push的使用,但是发现会render两次。
## 尝试解决:
1.发现目前dva中使用的是connect-react-router这个包,不再是以前的react-router-redux,怀疑是connec…
-
## What happens?
我原先对session的理解是每次登录后会产生一个唯一的session值,当退出登录后之前的session是无效了的,但是通过charles抓包,再重新请求,发现退出登录后,带有老session的请求还是能获取到登录状态下的信息。这让我有点疑惑,如果是这样,那我知道了某人某次登录的session值,那我之后随时可以利用这个session值登录到他的账户了,这样是…
-
请问如何通过ctx获取当前的模块,控制器,和方法名,谢谢
-
```
npm run rpc
```
错误日志如下:
PluginSequencifyError: sequencify plugins has problem, missing: [rpc], recursive: []
>> Plugin [rpc] is disabled or missed, but is required by [sofaRpc]
-
[ ] Regression
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overfl…
-
## 描述1
```
mac (f5) 点击debug的时候爆出的错误,全新项目。卡住没有跑到127.0.0.1:7001里面。
有时候跑到,也会乱debug。
cd /Users/xjc/my-project/test/egg-test ; /Users/xjc/n/bin/npm run debug -- --inspect-brk …
-
We need a full test framework for bot, we can use `mocha` which is used by default in eggjs, or we can integrate `jest` as our test framework.
-
启动命令:``` egg-scripts start --title=egg-server-example ```
停止命令:``` egg-scripts stop --title=egg-server-example```
我希望在进程收到停止信号后,执行一个异步操作,并等待它返回之后再退出。
目前我是这么做的,请看 app.js 代码
```
const Logger = re…
-
bug 发现来自 https://github.com/eggjs/egg/issues/3137#issuecomment-434398691 的反馈讨论。
-
想给`egg-view-ejs`包提一点点建议
首先打开这个链接:https://www.npmjs.com/package/egg-view-ejs
然后发现右边的两个链接里多写了`egg-`
![WeChat Screenshot_20200202152946](https://user-images.githubusercontent.com/10508248/73…