做了些修改。
请注意 /api/notes 返回的数据格式。是一个数组,数据元素是一个 map,包括 type、value,以及相应的 notes。全部笔记、热门笔记和账号笔记下可以显示下 value,选择不同 value 时,可再选出 notes。notes 也是一个数组,它的元素是一个 note。注意 note 各字段和interface Note如何对应,使得数据能正确显示。
做了些修改。
请注意 /api/notes 返回的数据格式。是一个数组,数据元素是一个 map,包括 type、value,以及相应的 notes。全部笔记、热门笔记和账号笔记下可以显示下 value,选择不同 value 时,可再选出 notes。notes 也是一个数组,它的元素是一个 note。注意 note 各字段和interface Note如何对应,使得数据能正确显示。