-
## DESC
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:3.2.9
### code
```js
// your code here
```
### error message
```
// your error message here
```
### more de…
-
## DESC
公司内部有一个node运行框架,会以子进程的模式启动服务,当运行thinkjs服务的时候,由于thinkjs也会fork子进程,发生冲突导致thinkjs服务无法启动。想了解一下,有没有办法可以关闭thinkjs的多进程模式?
### ENV
OS Platform:
MacOS
Node.js Version:
v10.16.0
ThinkJS Vers…
-
## DESC
### ENV
OS Platform: window10
Node.js Version: 12.0.0
ThinkJS Version: ^3.0.0
### code
```js
// your code here
```
### error message
```
// your error message here
…
-
## DESC
### ENV
OS Platform: mac
Node.js Version: v14.15.5
ThinkJS Version: 3.2.10
### code
```js
// your code here
```
### error message
```
// your error message here
```…
-
### ENV
* thinkjs3.0
* think-mongoose
* node-acl
## DESC
项目中要增加权限控制功能,看到`node-acl`可以满足要求,想将其引入到thinkjs中,
但是要创建一个`acl`实例,需要`mongodb`的`dbConnection`,具体方式如下:
```
let mongoose = require('mongo…
-
## DESC
thinkjs3.0 beta3 用`thinkjs new demo` 生成的项目,在webstorm里面点击 调试 development.js 不能启动
## ENV
development
Platform:
mac
Node.js Version:
8.1.4
ThinkJS Version:
3.0 beta
-
## DESC
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:3.2.11
### code
```js
// your code here
```
### error message
```
// your error message here
```
### more d…
-
## DESC
我在给thinkjs搭建的项目写单元测试的过程中遇到了一些问题:
1. 使用think.controller提示“think.controller is not a function”
thinkjs版本:3.2.10
单元测试工具:ava(参考https://github.com/thinkjs/thinkjs/issues/841 这个issue里面你的回答…
-
## DESC
我在mysql里面有一个表拥有一个唯一索引的字段(如unique_id),然后在thinkjs里面使用query方法,执行裸sql字符串,如 `insert ignore into uniq_test set unique_id=1 ` 。然后查看结果的affectedRows是否为1,来判断是否成功。如果成功则执行成功的语句,为0则执行失败的语句。按我的理解来说,unique_…
-
## DESC
按照issue #841 的方法进行测试的时候,想用supertest模拟请求进行API测试,然后发现虽然think.model有内容,但是think.app却没有按照运行流程所说注入think.app.server,也就没办法构造http请求进行测试。以为是异步的问题,但是使用繁忙等待发现think.app.server一直是undefined。另外,按照这样的方式进行测试,t…