UNPKG

mixone

Version:

MixOne is a Node scaffolding tool implemented based on Vite, used for compiling HTML5, JavasCript, Vue, React and other codes. It supports packaging Web applications with multiple HTML entry points (BS architecture) and desktop installation packages (CS a

12 lines (11 loc) 330 B
// 引入路由 import { createRouter, createWebHashHistory } from "vue-router"; // 定义路由 const routes:any = ____router____ // 创建路由 const router:any = createRouter({ history: createWebHashHistory(), routes, // 路由配置简写形式,同 routes: routes }); // 导出 router export default router;