-
### ENV
* thinkjs3.0
* think-mongoose
* node-acl
## DESC
项目中要增加权限控制功能,看到`node-acl`可以满足要求,想将其引入到thinkjs中,
但是要创建一个`acl`实例,需要`mongodb`的`dbConnection`,具体方式如下:
```
let mongoose = require('mongo…
-
## DESC
Ubuntu server 22.04.01 执行安装 npm install -g think-cli 后
提示 **npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher.**
Older versions may use Math.random() in certain cir…
-
## DESC
Hi there,
I would like to use Firebase instead of MongoDB and MySQL.
Since the syntax is very different from them, mostly url based request and socket how can I implement this?
Do I need…
-
## DESC
[swagger-node](https://github.com/swagger-api/swagger-node) 封装了swagger的yaml与接口实现的映射关系,thinkjs封装了router与action的映射关系,确定了接口映射的规范,如何把两者结合起来,由swagger yaml确定发布的接口以及接口与action的映射关系,两者结合起来就完美了。
#…
-
无法在`Object.prototype`原型上添加方法
```javascript
Object.prototype.testAAA = function () {
console.log(this)
}
```
报错
```base
[2022-06-30T10:59:54.081] [17860] [INFO] - Server running at http://1…
-
启动运行开发组件服务,提示cannot find module 'thinkjs'
-
**描述遇到的问题**
按照部署文档部署了评论,提交评论时报错,具体报错见截图,无法发表评论,大佬帮忙定位一下。
**相应配置**
这是我的博客环境,可以在下面评论提交,看一下前端报错
https://bovan.vercel.app/article/8f392d85-2510-455e-99fd-74bb780adebd
**截图**
![image](https://u…
-
-
### 问题描述 | Describe the bug
第一次正常部署好像没问题,但我把备份的pgsql的数据库重新导入到新的DB时(恢复DB),请求会返回这种内容:
```log
[2022-03-31T23:00:17.874] [15] [INFO] - SQL: SELECT "status","comment","insertedAt","link","mail","nick"…
-
## DESC
### ENV
OS Platform: windows10
Node.js Version: v16.9.0
ThinkJS Version: 2.2.9
### more description
![图片](https://user-images.githubusercontent.com/51245335/160968240-b97f16f…