Przeglądaj źródła

Merge branch 'dev' of https://git.citupro.com/zhengnaiwen_citu/menduner into dev

Xiao_123 11 miesięcy temu
rodzic
commit
723db1e36d
2 zmienionych plików z 23 dodań i 7 usunięć
  1. 13 7
      src/router/modules/remaining.js
  2. 10 0
      src/views/entrances/index.vue

+ 13 - 7
src/router/modules/remaining.js

@@ -45,16 +45,23 @@ const remainingRouter = [
   },
   {
     path: '',
-    component: Layout,
-    redirect: '/home',
+    redirect: '/entrances',
     children: [
+      { path: '/', redirect: '/entrances' },
       {
-        path: '/personal',
-        redirect: '/home',
+        path: '/entrances',
+        component: () => import('@/views/entrances/index'),
         meta: {
-          title: '首页'
+          title: '门墩儿应用中心'
         }
-      },
+      }
+    ]
+  },
+  {
+    path: '/home',
+    component: Layout,
+    children: [
+      { path: '/personal', redirect: '/home' }, 
       {
         path: '/home',
         component: () => import('@/views/Home/index'),
@@ -66,7 +73,6 @@ const remainingRouter = [
   },
   {
     path: '/mall',
-    // component: Layout,
     children: [
       {
         path: '/mall',

+ 10 - 0
src/views/entrances/index.vue

@@ -0,0 +1,10 @@
+<!-- 门墩儿入口管理页 -->
+<template>
+  <div>vue3PageInit</div>
+</template>
+
+<script setup>
+defineOptions({name: 'entrances-index'})
+</script>
+<style lang="scss" scoped>
+</style>