Commit 13cd7140 by zhangxw

fix(venus-usedcar-livecode): 修改

1 parent 886498a2
Pipeline #196 for 13cd7140 failed in 0 seconds
import { createRouter, createWebHistory } from "vue-router";
import type { RouteRecordRaw } from "vue-router";
import { createRouter, createWebHistory } from "vue-router";
const ScanLivecode = () => import("@/views/scan-livecode/index.vue");
const routes: RouteRecordRaw[] = [
{ path: "/", redirect: "/scan-livecode" },
{ path: "/scan-livecode", component: ScanLivecode },
{ path: "/:pathMatch(.*)*", redirect: "/scan-livecode" },
];
const router = createRouter({
history: createWebHistory(),
routes: [
{ path: "/", redirect: "/scan-livecode" },
{ path: "/scan-livecode", component: ScanLivecode },
{ path: "/:pathMatch(.*)*", redirect: "/scan-livecode" },
],
history: createWebHistory(import.meta.env.BASE_URL),
routes,
});
export default router;
......@@ -211,6 +211,7 @@ onMounted(() => {
<style lang="scss" scoped>
.scan-livecode-page {
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!