提交 775fc764 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

fix: 修改参数

上级 a7d9aa1d
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
fileManager.readFile({ fileManager.readFile({
encoding:'utf-8', encoding:'utf-8',
filePath:'static/list-mock/mock.json', filePath:'static/list-mock/mock.json',
success:function(result:ReadFileSuccessResult){ success:function(result){
const content = result.content; const content = result.data;
if (content != null){ if (content != null){
const items = [] as Item[]; const items = [] as Item[];
const jsonArr = JSON.parse(content); const jsonArr = JSON.parse(content);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册