-
## DESC
每次运行程序 node development 就直接报错
### ENV
OS Platform:
liunx centos 7.X
Node.js Version:
6.9.1
ThinkJS Version:
3.2.3
### code
const API = require('co-wechat-api');
this.api = new AP…
-
在阅读 `thinkjs` 源码的时候,难免会发现一些并不是那么美观的问题。请原谅我的强迫症😅😅
所以呢,我希望 `thinkjs` 可以做得更好,可以被更多人所推崇,我建议使用 `airbnb` 的规范。
```json
{
"parser": "babel-eslint",
"extends": "airbnb-base"
}
```
我的初衷只是让 `thin…
-
## DESC
```
TypeError: Cannot read property 'get' of undefined
at Object.config (/Users/Jason/Documents/project/api/v3/node_modules/think-config/index.js:77:18)
at Object.config (/U…
-
跟踪代码到 await getRawBody(ctx.req这里,await一直没有返回。。
-
The docs are broken.
https://thinkjs.org/doc/index.html
-
## DESC
```js
{
handle: 'payload',
options: {
path: path.join(think.ROOT_PATH, 'runtime/data'),
}
}
```
像上面那样修改path路径,不起作用。在windows下,如果不改上面的路径,项目不在c盘,上传会提示文件复制跨盘的错误。
## …
-
## DESC
现在新建的首页相关文档链接还是 2.0 的,需要替换成 3.0 的。
## ENV
Platform: *
Node.js Version: *
ThinkJS Version: 3.0.0
-
```
module.exports = class extends Base {
indexAction() {
let userService = think.service('user');
console.log(userService);
userService = new userService();
return t…
-
## DESC
Logic 里的参数判断,有时候不同的 Action 会共有一些字段,现在是要在每个 Action 里都设置,有点麻烦。可以支持下 scope 的功能,如:
```js
module.exports = class extends think.Logic {
get scope() {
return {
app_id: {
…
-
## DESC
使用3.0的多模块模式后,存在admin/home两个模块,分别都有自己的base.js控制器,运行良好。
因为有些功能希望提供给所有模块使用,是否可以在src/common目录下自建一个全站级的base控制器,让每个模块的base.js继承它?
自己尝试了下,好像不行...求助...
### ENV
OS Platform: Win10
Node.js…