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 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({ const router = createRouter({
history: createWebHistory(), history: createWebHistory(import.meta.env.BASE_URL),
routes: [ routes,
{ path: "/", redirect: "/scan-livecode" },
{ path: "/scan-livecode", component: ScanLivecode },
{ path: "/:pathMatch(.*)*", redirect: "/scan-livecode" },
],
}); });
export default router; export default router;
...@@ -211,6 +211,7 @@ onMounted(() => { ...@@ -211,6 +211,7 @@ onMounted(() => {
<style lang="scss" scoped> <style lang="scss" scoped>
.scan-livecode-page { .scan-livecode-page {
box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: 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!