文件名称:vue-cli3中使用mock(实际项目中快速搭建)
文件大小:361KB
文件格式:ZIP
更新时间:2023-11-17 06:16:48
mock vue-cli3 axios
模块化配置mock,结合mock-api,axios,可应用于实际项目中;前后端分离开发之后,有了mock就可以不用等后端的接口完成后调用接口,前端可以自行模拟接口数据,快速开发。
【文件预览】:
vue.config.js
package.json
mock
----index.js(736B)
----test()
--------getTestData.json(210B)
.git
----index(1KB)
----hooks()
--------fsmonitor-watchman.sample(3KB)
--------post-update(858B)
--------pre-push.sample(1KB)
--------prepare-commit-msg.sample(1KB)
--------pre-applypatch(870B)
--------commit-msg(854B)
--------post-applypatch(874B)
--------post-checkout(866B)
--------pre-rebase(854B)
--------pre-push(846B)
--------push-to-checkout(878B)
--------applypatch-msg.sample(478B)
--------post-merge(854B)
--------update(838B)
--------pre-commit.sample(2KB)
--------sendemail-validate(886B)
--------post-commit(858B)
--------prepare-commit-msg(913B)
--------pre-receive.sample(544B)
--------pre-applypatch.sample(424B)
--------commit-msg.sample(896B)
--------pre-rebase.sample(5KB)
--------post-rewrite(862B)
--------update.sample(4KB)
--------post-update.sample(189B)
--------post-receive(862B)
--------applypatch-msg(870B)
--------pre-commit(854B)
--------pre-auto-gc(858B)
--------pre-receive(858B)
----config(130B)
----description(73B)
----refs()
--------tags()
--------heads()
----logs()
--------refs()
--------HEAD(151B)
----objects()
--------65()
--------64()
--------87()
--------e9()
--------40()
--------info()
--------cc()
--------8c()
--------55()
--------f3()
--------pack()
--------df()
--------18()
--------41()
--------63()
--------56()
--------ff()
--------94()
--------b4()
----info()
--------exclude(240B)
----COMMIT_EDITMSG(5B)
----HEAD(23B)
package-lock.json
src
----App.vue(693B)
----assets()
--------logo.png(7KB)
----main.js(192B)
----components()
--------HelloWorld.vue(2KB)
.gitignore
public
----index.html(613B)
----favicon.ico(4KB)
README.md
yarn.lock
babel.config.js