Переглянути джерело

Merge branch 'master' of http://49.234.186.218:9000/root/ieplus

jinxia.mo 1 тиждень тому
батько
коміт
56deb9e870

+ 3 - 3
back-ui/src/components/Breadcrumb/index.vue

@@ -33,9 +33,9 @@ function getBreadcrumb() {
     matched = route.matched.filter((item) => item.meta && item.meta.title)
   }
   // 判断是否为首页
-  if (!isDashboard(matched[0])) {
-    matched = [{ path: "/index", meta: { title: "首页" } }].concat(matched)
-  }
+  // if (!isDashboard(matched[0])) {
+  //   matched = [{ path: "/index", meta: { title: "首页" } }].concat(matched)
+  // }
   levelList.value = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
 }
 function findPathNum(str, char = "/") {

+ 8 - 7
back-ui/src/router/index.js

@@ -60,14 +60,15 @@ export const constantRoutes = [
     {
         path: '',
         component: Layout,
-        redirect: '/index',
+        redirect: '/dz/cards',
+        hidden: true,
         children: [
-            {
-                path: '/index',
-                component: () => import('@/views/index'),
-                name: 'Index',
-                meta: {title: '首页', icon: 'dashboard', affix: true}
-            }
+            // {
+            //     path: '/index',
+            //     component: () => import('@/views/index'),
+            //     name: 'Index',
+            //     meta: {title: '首页', icon: 'dashboard', affix: true}
+            // }
         ]
     },
     {

+ 2 - 2
back-ui/vite.config.js

@@ -3,8 +3,8 @@ import path from 'path'
 import createVitePlugins from './vite/plugins'
 import tailwindcss from '@tailwindcss/vite'
 
-const baseUrl = 'http://localhost:8080' // 后端接口
-// const baseUrl = 'https://dz.shineking.top/prod-api' // 后端接口
+// const baseUrl = 'http://localhost:8080' // 后端接口
+const baseUrl = 'https://dz.shineking.top/prod-api' // 后端接口
 
 // https://vitejs.dev/config/
 export default defineConfig(({ mode, command }) => {