-
I have use thinkjs 3.x to do an api interface system. I have no use `session`, `cookie`, `view` those
function, how can I delete those feature setting?
-
您好,我的thinkjs版本是2.2,折腾了半天也没有搞定,问题如下:
第一张图是middleware的配置:
![image](https://user-images.githubusercontent.com/13931187/29260542-148c1556-80fd-11e7-9089-28b3e0871797.png)
第二张图是controller里的配置:
![image]…
-
## DESC
socket的action,通过前端的emit触发,可以正常调用emit分发。
但是,我想在浏览器访问这个action时调用emit分发,就报错了。
### ENV
OS Platform:Mac
Node.js Version:7.7.1
ThinkJS Version:3.xxx
### code
```js
testAction() …
-
## DESC
新手!!!
根据 https://thinkjs.org/zh-cn/doc/3.0/mongo.html 的配置连接mongodb,但一直提示 config.handle must be a function,本想参照mysql的配置,但连接数据库的时候,日志显示是mysql://开头,这样无法连接到mongo
### ENV
OS Platform:
…
-
## DESC
https://github.com/lizhiyang1/thinkjs-react/tree/dev
我用thinkjs + webpack,热更新能正常获取__webpack_hmr,但是获取 hot-update.json 出现404
这是否会跟 think-resource 这个 middleware 有关?
webpack-dev-middleware 采用的是…
-
### ENV
OS Platform:windows
Node.js Version:8.3
ThinkJS Version:3.2
### base.js code
```js
const $role = await this.model('admin_role').checkAuth(this.ctx, this.userInfo, 0, true);…
liqqs updated
6 years ago
-
## DESC
由于业务需要,需要使用 protobuf 数据格式,但是发现无论是用this.post(),还是 this.ctx.request,等方法,均无法获取安卓客户端传递的 protobuf 数据?求解答。
### ENV
OS Platform:ubuntu 16.4
Node.js Version:8.0
ThinkJS Version:3.0
-
1、使用 redis 缓存存储 Object 的时候好像没有自动序列化,我记得 thinkjs 2.0 版本是有的。
2、文档中好像没有提到能动态配置缓存参数,thinkjs 2.0 版本好像是这样:think.cache (key ,val, options ),thinkjs 3.0版本好像并没有,是否有方法动态配置缓存时间呢?
-
## DESC
创建 REST Controller
`thinkjs controller user -r`
默认生成的rest.js里这句会报错
getPk is not a function
`const pk = await this.modelInstance.getPk();`
## ENV
Platform: Debian 7
Node.js Versi…
-
### ENV
OS Platform: windows
Node.js Version:8.3.0
ThinkJS Version:3.2.1
### error message
How disable return 404 when controller not exist? I want redirect to another controller or rou…