layui/.svn/pristine/01/01a7404c77f1253faf50d441b4d72e2ef463635d.svn-base
2022-12-09 16:41:41 +08:00

17 lines
327 B
Plaintext

import {
createRouter as _createRouter,
createWebHistory,
Router,
} from "vue-router";
import zhCN from "./zh-CN";
const routes = [...zhCN];
export function createRouter(): Router {
const baseUrl = import.meta.env.BASE_URL;
return _createRouter({
history: createWebHistory(baseUrl),
routes: routes,
});
}