feat: 优化接口配置设计,注册的网络请求会自动注册到 vue 原型 $api 上,修改了一些旧的接口调用方式

This commit is contained in:
FairyEver
2020-05-07 15:49:28 +08:00
parent 804f66eb05
commit 28acfdbb04
21 changed files with 118 additions and 103 deletions

View File

@@ -8,11 +8,10 @@
</template>
<script>
import { getInvalidUrl } from '@api/demo.playground.log.ajax.js'
export default {
methods: {
handleClick () {
getInvalidUrl()
this.$api.DEMO_LOG_AJAX()
}
}
}