10 2022 档案
摘要:1. 首先下载插件 yarn add vite-plugin-mock mock -D 2.建立mock文件夹,并且新建index.js 文件 export default [{ url: '/dev-api/api/getUsers', method: 'get', response: () =>
阅读全文
摘要:1.asyncRoute.js /** * 当前文件保存已经写好的页面组件 */ const aysncRoutes = { PageA: () => import('../views/PageA/index.vue'), PageB: () => import('../views/PageB/in
阅读全文