0
this._db.query(`classRoom_ZSFtmZiBu/robots`, {
classRoomCode: this.classRoomCode,
}).then(res => res.rows.map(it => it.key));
掷404错误...
即使设计文档的数据库中。 。
"_id": "_design/classRoom_ZSFtmZiBu",
"_rev": "1-667891751ba8a733dc1976172de9b513",
"views": {
"robots": {
"map": "function (doc) {\n if (doc.type === \"robot\") {\n emit(doc);\n }\n }"
}
},
"filters": {
"robotsOnThisClassRoomOnly": "function (doc, req) {\n return doc.type === \"robot\" && doc.classRoom === req.query.classRoomCode;\n }"
}
我会尝试..我1.6.1 – ridermansb
是否使用MAC使用在Apache CouchDB的Fauxton更改版本?你在本地或IP /域上测试过吗? 在我的机器...只有当我使用IP地址时发生此错误 – ridermansb
Bdw ..此错误甚至发生在2.1版本 – ridermansb