如何通过HbuilderX创建数据库?
编写db_init.json
// 在本文件中可配置云数据库初始化,数据格式见:https://uniapp.dcloud.io/uniCloud/hellodb?id=db-init
// 编写完毕后对本文件点右键,可按配置规则创建表和添加数据
12:14:53.258 [阿里云:ankiadmin]初始化云数据库...12:14:57.419 [阿里云:ankiadmin]初始化云数据库成功
{"hello-word": {"data": [{"similar": "哈哈001","name": "an","type": "A","isAdd": false,"img": "<img src='IMG_20210819_141529.jpg'>"},{"similar": "哈哈001","name": "able","type": "A","isAdd": true,"img": "<img src='IMG_20210819_141529.jpg'>"},{"similar": "哈哈001","name": "about","type": "A","isAdd": true,"img": "<img src='IMG_20210819_141529.jpg'>"}]}}
如何编写dbschem
{"bsonType": "object","required": [],"permission": {"read": false,"create": false,"update": false,"delete": false},"properties": {"_id": {"description": "ID,系统自动生成"}}}
用户端的如何设计?
看别人怎么写的。
方案1:点击宫格1跳转到单词界面
如何打包
主要测试先把微信登录和分享的取消掉。
注意事件
schema2code修改文件的时候显示异常,要重新编译就行了。
上传图片错误
errCode: InternalServerError | errMsg: Cannot create field 'extname' in element {img: "<img src='IMG_20210819_141529.jpg'>"}
这里是之前的img字段设置为string了。删除为空就行了。
“
“
