-
## DESC
src/common/config/middleware.js中配置如下:
```js
{
handle: 'resource',
enable: true,
options: {
root: path.join(think.ROOT_PATH, 'www'),
publicPath: /^\/(static|uplo…
-
## DESC
使用socketio时协议一直都是轮询,没有自动升级
### ENV
OS Platform:
win10_64
Node.js Version:
6.11.2
ThinkJS Version:
3.2.4
think-websocket Version:
1.0.6
think-websocket-socket.io Version:
1.0.5
…
caiya updated
6 years ago
-
## DESC
按照官方例子报错了
### ENV
OS Platform: macos
Node.js Version: 8.8.1
ThinkJS Version: 3.2.3
### code
```js
module.exports = class extends think.Model {
get schema() {
return {…
-
```
async uploadAction() {
let brandFile = this.file('brand_pic');
if (think.isEmpty(brandFile)) {
return this.fail('保存失败');
}
let that = this;
…
chekn updated
7 years ago
-
## DESC
访问官网文档,有时能看到3.0的文档,只能看到2.1的文档
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
本地文件缓存报错, 报错退出 业务无法继续
```
{ Error: ENOENT: no such file or directory, stat '/Users/charmtiger/Documents/WORK/thinkjs/mengti/runtime/cache/1/1efe3befc89dcd8d4a281ef67dbe73bd'
at Error…
-
## DESC
![1502963880 1](https://user-images.githubusercontent.com/7554002/29407071-a460a280-8375-11e7-8b3c-82d2c2ef9214.png)
## ENV
Platform: thinkjs 3.0
Node.js Version: 8.1.0
ThinkJS …
-
## DESC
使用命令生成controller ,
`thiskjs controller info -r;`
数据表为 info ,key 为 user_id;
controller info.js 接收put/post请求报错
`TypeError: _this.modelInstance.getPk is not a function`
请问如何获info的key呢?
…
-
## DESC
### ENV
OS Platform:window 10
Node.js Version:8.0.0
ThinkJS Version:3.0
### code
```js
async addAction() {
const post =this.post();
const category_add = this.p…
-
根据 #848 中的解决方案这样自定义后,只能使用自己的静态页模板,无法显示默认404页显示的错误信息,特别是开发阶段不太方便。能否把默认404页放到view目录中,方便直接修改?