-
## DESC
think-model-sqlite模块无法安装出错,sqlite3版本过低
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:
### code
```js
// your code here
```
### error message
```
// your error…
-
## DESC
框架底层已经把think作为全局变量使用,但是不建议这样使用。
建议每个controller|logic|model都明确引入think,这样才能让编辑器(例如VsCode)能自动代码提示。node开发本来就推荐模块化开发...
所有使用think的文件都加上这句引入,有惊喜
```js
const { think } = require('thinkjs');
`…
-
## DESC
能够主动监听session失效吗?
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:3.2.10
### code
```js
// your code here
```
### error message
```
// your error message here
…
-
## DESC
pm2 发送SIGUSR2 信号给thinkjs,然后运行`ps -ef | grep node`,发现进程多了好多倍,而且不会释放掉
### ENV
OS Platform: centos7
Node.js Version:
10.15.3
ThinkJS Version:
3.2.10
### code
```js
// your code he…
-
## DESC
think-view-nunjucks 依赖的 fsevents@1.2.9 需要升级
### ENV
OS Platform: centos
Node.js Version: 8.9.4
ThinkJS Version: 3.2.9
### code
```js
// your code here
```
### error…
-
ThinkJS Version:3.0
```js
{
pageSize: 10, //每页显示的条数, think-model@1.1.8 之前该字段为 pagesize
currentPage: 1, //当前页
count: 100, //总条数
totalPages: 10, //总页数
data: [{ //当前页下的数据列表
name: "t…
-
为什么没人提这个问题呢?
Support for generators will be removed in v3. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa/blob/master/docs/migration.md node_module…
-
## DESC
node_modules/thinkjs/lib/application.js
Line88-101
```js
parseArgv() {
const options = {};
const argv2 = process.argv[2];
const portRegExp = /^\d{2,5}$/;
const pathRe…
-
OS Platform: window 10
Node.js Version: 10.14.2
ThinkJS Version: 3.2.10
### code
extend.js
```js
const view = require('think-view');
const model = require('think-model');
const cache = r…
-
## DESC
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:
### code
```js
// your code here
exports.model = {
type: 'mysql',
common: {
logConnect: isDev,
logSql…