点击内容列表标题可打开内容显示页面。创建一个命名为'post show'的store模块,定义一个接口'post show store state'包含属性loading(布尔值)和post。另外定义'post'接口含有属性id(number), title(string), content(string)。模块'post show store module'使用命名空间,包含state有loading(默认false)和post(默认空对象),断言state类型为'post show store state'。Getters包括loading和post,根据state内容返回相应值。Mutations含'set loading'和'set post'来更新state中的loading和post。Actions中定义'action'名为'get post by id',使用commit mutation更新state,并处理请求接口数据。最后,在store模块中的modules添加'show',对应新建的'post show store model'。