Commit 029c23f1 authored by David黄金龙's avatar David黄金龙

备注 截取 500

parent 41d82dc1
...@@ -412,6 +412,9 @@ private extension YHMyDocumentsDetailViewModel { ...@@ -412,6 +412,9 @@ private extension YHMyDocumentsDetailViewModel {
let tModel = YHHKPlanDocModel() let tModel = YHHKPlanDocModel()
tModel.title = "7、备注" tModel.title = "7、备注"
tModel.content = model.remark.defaultStringIfEmpty(detaultValue: "") tModel.content = model.remark.defaultStringIfEmpty(detaultValue: "")
if tModel.content.count > 500 {
tModel.content = tModel.content.slicing(from: 0, length: 500) ?? ""
}
tModel.type = .planOther tModel.type = .planOther
tModel.isLastData = true tModel.isLastData = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment