uni-app schema2code生成代码时,schema的properties的title或者label字段包含%时,生成的页面无法打开

uni-app schema2code生成代码时,schema的properties的title或者label字段包含%时,生成的页面无法打开

示例代码:

{  
    "bsonType": "object",  
    "required": [],  
    "permission": {  
        "read": true,  
        "create": true,  
        "update": true,  
        "delete": true  
    },  
    "properties": {  
        "_id": {  
            "description": "ID,系统自动生成"  
        },  
        "sn":{  
            "title":"序号%",  
            "bsonType":"string"  
        }  
        }  
}

操作步骤:

  • 在unicloud云空间里面的 database ,新建test.schema.json填写上述代码,右键 test.schema.json 选择schema2code生成代码之后,访问生成的网页中的list页面

预期结果:

  • 正常展示list页面

实际结果:

  • 报错,list页面无法展示

bug描述:

  • 使用schema2code时,如果配置的schema的属性字段title或者label里面包含 %, 则生成的代码运行会报错
  • 例如schema如下:

更多关于uni-app schema2code生成代码时,schema的properties的title或者label字段包含%时,生成的页面无法打开的实战教程也可以访问 https://www.itying.com/category-93-b0.html

回到顶部