feat: 使用 axios 扩展的方式实现 mock 数据
This commit is contained in:
@@ -63,7 +63,7 @@ export default {
|
||||
},
|
||||
// 从 url 加载原始数据
|
||||
async getReadme (url) {
|
||||
const data = await this.$api.COMPONENT_MARKDOWN_GET({ url })
|
||||
const data = await this.$api.FILE_GET(url)
|
||||
return this.marked(data)
|
||||
},
|
||||
marked (data) {
|
||||
|
||||
Reference in New Issue
Block a user