-
## DESC
调试出现这个,需要做什么设置吗?
(node:28384) Warning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit
## ENV
Platform: centos7.2…
-
## DESC
默认配置下,host是127.0.0.1
```
host: '127.0.0.1', // server host
```
这样启动起来的服务只能通过127来访问了,却不能通过本机的IP来访问了,比如我的IP是192.168.14.7,我只能配置config文件增加一个host来覆盖下了,这么做的目的是啥?
## ENV
Platform: MAC
N…
-
## DESC
```js
// await this.model("users").where({ id: user.id }).increment('login', 1);
并没有给数据库中 login 字段+1;
sql语句出来是这样子滴
UPDATE `users` SET `login`=`login`+1 WHERE ( `id` = 169 ), Time: …
-
## DESC
默认支持的src --> app的watch和自动编译重启,如果界面部分也是用es6写,需要src-web --> view或www/static/js ,怎么配置
## ENV
Platform:
MacOS
Node.js Version:
v8.0.0
ThinkJS Version:
Thinkjs 3.0 beta2
-
## DESC
上传文件校验是否为图片,规则image不生效
查看了源码发现think-payload包中引用的“formidable”处理上传文件,最终文件返回的格式是
```js
var file = new File({
path: this._uploadPath(part.filename),
name: part.filename,
…
-
## DESC
下面是我写的logic文件
```js
// src/user/logic/login.js
async outAction() {
// 只允许 get 请求类型
this.allowMethods = 'get';
}
```
我把请求类型校验改为post之后,会出现如下提示:
`{"errno":1…
-
## DESC
## ENV
Platform:windows
Node.js Version:node 7.1
ThinkJS Version:2.2.20
切换回2.2.18版本正常。
![error](https://user-images.githubusercontent.com/14024936/28459734-5361215a-6e41-…
-
## DESC
如题?以前2.0有提供过分页模块,3.0目前还提供吗
## ENV
Platform: windows
Node.js Version: 6.11.1
ThinkJS Version:3
liqqs updated
7 years ago
-
并行插入大量数据,比如10万、5万,有时候会提示错误 read ECONNRESET,数据库mongo、thinkjs版本2.2
-
## DESC
3.0有使用视图的addFilter的栗子吗
## ENV
Platform:
Node.js Version: 6.11.1
ThinkJS Version: 3.0 beta