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