-
## DESC
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:
### code
```js
// your code here
```
### error message
```
// your error message here
```
### more descrip…
-
## DESC
在config.js里面配置了redis信息,redis: {host: xxx, port: xxx},然后使用think-session、think-session-redis,redis连接时读取不到redis配置,但是官方文档里写的是redis配置信息可以放在config.js里面。
### ENV
OS Platform: Mac
Node.js Vers…
-
## DESC
### ENV
OS Platform:
Node.js Version: v14.16.0
ThinkJS Version: v2.3.0
### code
```js
async uploadAction()
{
console.log(this.http.file("file"))
let f…
-
## DESC
### ENV
OS Platform:
Node.js Version:
14.x
ThinkJS Version:
2.2.18
### code
```js
// your code here
think.file()
```
### error message
无报错,但是报不到上传文件的信息。
```
// your er…
-
ENOENT: no such file or drectory, unlink 'xxxxxx'
个人觉得 think-cache-file模块应该把这个错误包裹起来。返回空
-
## Spelling errors in English documents
Action Execution
Action execution is done via think-controller middleware, According to ctx.action value to match controller xxxAction mehtod, call this metho…
-
## DESC
因为微信小程序引用不了socket.io.js,作为客户端的微信小程序怎么和服务器进行websocket通信?
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:
### code
```js
// your code here
```
### error message
…
ktkxc updated
3 years ago
-
## DESC
项目由thinkjs v3.2.7 + react v16.3.1 + koa-webpack中间件搭建的。前端热更新没问题,但当后端代码热更新时,koa-webpack中间件会再次运行打包前端react代码。有没有办法让后端热更新时不更新前端代码?
### ENV
OS Platform: Mac OS
Node.js Version: v8.9.3
T…
-
thinkjs多模块项目模式启动报错
$ cloudbase new tcbstarter thinkjs-starter
$ tcb
多模块化以后:
"thinkjs": {
"metadata": {
"name": "thinkjs-starter",
"description": "application created by th…
-
## DESC
主要为了解决在数据库中建立的字段名称与接口中提供的数据字段名称可能不一致的问题
例如: 在表中字段的名称为 `table_filed_name`, 而在接口中输出的字段需要变成 `field1`
```javascript
export default class extends think.model.base {
schema = {
…