feat: 使用 axios 扩展的方式实现 mock 数据

This commit is contained in:
FairyEver
2020-05-07 23:02:12 +08:00
parent 28acfdbb04
commit ac9b1ea26d
14 changed files with 161 additions and 41 deletions

View File

@@ -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) {