Shannon_mu há 2 anos atrás
pai
commit
95676f3fd8

+ 1 - 1
commandCenter/src/App.vue

@@ -1,6 +1,6 @@
 <template>
     <div id="app">
-        <router-view></router-view>
+          <router-view></router-view>
         <xk-modal></xk-modal>
         <div class="dmp-alert" v-if="popupsList.length !== 0">
             <div class="dmp-alert-body" v-for="item in popupsList" :key="item.id">

+ 5 - 4
commandCenter/src/router/index.js

@@ -9,22 +9,23 @@ Vue.use(Router);
 const quietRoute = [
     {
         path: '/',
-        component: () => import('@/components/common/Home.vue'),
+        component: () => import(/* webpackChunkName: "404" */ '@/components/common/Home.vue'),
+        redirect:"/homeIndex",
         children: [
             {
                 path: '/homeIndex',
                 name: 'homeIndex',
-                component: () => import('@views/commandDispatch/index.vue'),
+                component: () => import(/* webpackChunkName: "404" */ '@views/commandDispatch/index.vue'),
                 meta: { title: 'homeIndex' }
             },
             {
                 path: '/403',
-                component: () => import('@views/errorPage/403.vue'),
+                component: () => import(/* webpackChunkName: "404" */ '@views/errorPage/403.vue'),
                 meta: { title: '403' }
             },
             {
                 path: '/404',
-                component: () => import('@views/errorPage/404.vue'),
+                component: () => import(/* webpackChunkName: "404" */ '@views/errorPage/404.vue'),
                 meta: { title: '404' }
             },
         ],

+ 1 - 1
commandCenter/vue.config.js

@@ -14,7 +14,7 @@ const proxyAgent = {
     }
 }
 module.exports = {
-    publicPath: '/sc-commandCenter/',
+    publicPath: '/sc-commandCenter',
     productionSourceMap: false,
     filenameHashing: false,
     chainWebpack: (config) => {