-
加上yaml没有高亮
![image](https://user-images.githubusercontent.com/59759939/87274219-cf37aa80-c50d-11ea-90e9-d5c494b40802.png)
不加的话又识别成别的
![image](https://user-images.githubusercontent.com/59759…
-
## DESC
现有一个单租户系统改造成多租户,打算采用单实例,多数据库的方式实现。对think-model进行了改造:
```js
function model(name, config, m = 'common') {
const models = app.modules.length ? (app.models[m] || {}) : app.models;
c…
-
## DESC
### ENV
OS Platform: Deepin 20
Node.js Version: v12.13
ThinkJS Version: 3.2.11
ThinkModel Version: 1.5.1
ThinkModelMysql Version: 1.1.2
### code
```js
const result = …
-
想在程序启动时单独启动一个子进程监听消息队列,thinkjs只能在master中调childprocess吗??thinkjs有实现类似agent进程的方式吗?用来去做一些后台服务,比如长连接,监听消息队列等,望大神们指教!
-
## this.post()无法获取参数,中间件只应用了serve和router
### ENV
OS Platform:MacOS
Node.js Version:10.15.3
ThinkJS Version:2.2.9
### code
// src/config/middleware.js
```js
const path = require('path…
-
## DESC
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:3.2.11
### code
```js
// your code here
```
### error message
```
// your error message here
```
### more d…
-
## DESC
现在有一个需求,用socket.io 实现类似RPC调用的那种,项目间调用方法的模式。
需要一个 thinkjs 项目作为服务端,N个 thinkjs 项目作为客户端,进行数据交换。
但是现在,thinkjs 好像 “不能” 被当成客户端来用,即没有封装相关的特性,只封装了服务端的。
请问,有没有什么办法将其中一个 thinkjs 作为客户端,与服务端进行通信?
或者告诉我,我可…
-
使用 Thinkjs 的 Model 操作数据库习惯了,觉得方便又好用。但是做一些非 web 项目时,如数据采集、定时任务简单项目时,想使用 thinkjs 的 Model 封装的方法操作数据库。
-
I'm try use nunjucks render variable update data in script inner.
The framework from thinkjs..
I don't understand variable quote and set method in my project.
The View template variable upd…
-
## DESC
有两个model,用其中一个的model的事务,会出现后面事务无法提交的问题。
### ENV
OS Platform: win10 x64 & macOS 10.14.5
Node.js Version:v13.11.0
ThinkJS Version:3.2.11
### code
```js
let model = think.model(…