Commit b58f231f authored by 胡占生's avatar 胡占生 🇨🇳
Browse files

feat: 工作台初始化,页面初始布局

parent 0a530206
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
    "fuse.js": "6.6.2",
    "js-cookie": "3.0.5",
    "jsencrypt": "3.3.2",
    "moment": "^2.30.1",
    "nprogress": "0.2.0",
    "pinia": "2.1.7",
    "vue": "3.4.31",
@@ -36,9 +37,9 @@
    "@vitejs/plugin-vue": "5.0.5",
    "sass": "1.77.5",
    "unplugin-auto-import": "0.17.6",
    "unplugin-vue-setup-extend-plus": "1.0.1",
    "vite": "5.3.2",
    "vite-plugin-compression": "0.5.1",
    "vite-plugin-svg-icons": "2.0.1",
    "unplugin-vue-setup-extend-plus": "1.0.1"
    "vite-plugin-svg-icons": "2.0.1"
  }
}
+2 −2
Original line number Diff line number Diff line
@@ -18,9 +18,9 @@ function getBreadcrumb() {
  // only show routes with meta.title
  let matched = route.matched.filter(item => item.meta && item.meta.title);
  const first = matched[0]
  // 判断是否为首页
  // 判断是否为工作台
  if (!isDashboard(first)) {
    matched = [{ path: '/index', meta: { title: '首页' } }].concat(matched)
    matched = [{ path: '/index', meta: { title: '工作台' } }].concat(matched)
  }

  levelList.value = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ function handleCurrentChange(val) {

<style scoped>
.pagination-container {
  background: #fff;
  /* background: #fff; */
  padding: 32px 16px;
}
.pagination-container.hidden {
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ const tagsViewStore = useTagsViewStore()
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #f2f3f5;
}

.fixed-header + .app-main {
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ export const constantRoutes = [
        path: '/index',
        component: () => import('@/views/index'),
        name: 'Index',
        meta: { title: '首页', icon: 'dashboard', affix: true }
        meta: { title: '工作台', icon: 'dashboard', affix: true }
      }
    ]
  },
Loading