-
修改了src/api/controller/index.js第25行。
由原来的
const tempdata = await this.model('mockserver').where("api_url regexp '^" + url + "\\\\?'").select();
改成
const tempdata = await this.model('mockserver').wh…
-
## DESC
[Error] TypeError: this.model(...).where(...).getField is not a function
## ENV
npm 3.9.5
Platform:
ubuntu 16.04
Node.js Version:
node v6.2.2
ThinkJS Version:
v2.2.5
---
|__ **| | (…
-
-
## DESC
我们项目目前想从es6转到ts
ts版本在2.1.0以下不支持解构,但是项目目前只支持2.0.3的ts,什么时候能使用上2.1.x的ts???
## ENV
Platform:
macos
Node.js Version:
v6.3.1
ThinkJS Version:
v2.2.16
-
vscode launch.json 按照thinkjs官网配置,如下:
> {
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "启动程序",
…
JDDCN updated
7 years ago
-
在插件内封装action的话要怎么实现比较好呢
## DESC
你好,我在使用thinkjs的时候遇到一种需求:要封装一个重一点npm通用插件, 基于插件开发框架,可以在插件内通过扩展model,adapter和middleware访问到这些实例,但如果要把action也封装到插件内的话,还找不到一种扩展或者注册的方式,求指导 在插件内封装action的话要怎么实现比较好呢
## ENV
P…
-
访问个不存在的404页面, 页面显示`Not Found`, 控制台报:
```
$ node www/production.js
[2017-03-29 08:21:42] [THINK] Server running at http://127.0.0.1:8360/
[2017-03-29 08:21:42] [THINK] ThinkJS Version: 2.2.17
[2…
xuexb updated
7 years ago
-
## DESC
项目中用mongoose替换了thinkjs内置的ORM,参照了你之前写一篇文章
http://welefen.com/post/use-mongoose-in-thinkjs.html
#### base.js
``` javascript
export default class extends think.base {
/**
* schema
…
-
-
## DESC
我这系统比较多,需要单点登录,这个发现thinkjs里竟然没有提供可以修改session_id的方法
## ENV
Platform:
Node.js Version:
ThinkJS Version: