diff --git a/src/App.vue b/src/App.vue index 39596c9..9b90682 100644 --- a/src/App.vue +++ b/src/App.vue @@ -57,8 +57,8 @@ header { .main-content { /* padding-top: 30px; */ - overflow: hidden; - height: 100vh; + /* overflow: hidden; */ + /* height: 100vh; */ } .x-search-bar .ant-form-item { diff --git a/src/components/Header.vue b/src/components/Header.vue index 766bd83..5ea0792 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -4,7 +4,7 @@ diff --git a/src/components/layout.vue b/src/components/layout.vue index e0ecfb4..a79301e 100644 --- a/src/components/layout.vue +++ b/src/components/layout.vue @@ -38,6 +38,7 @@ import Sidebar from './sidebar.vue' .main-content { flex: 1; min-width: 0; + min-height: 100vh; background: #f5f5f5; } diff --git a/src/router/index.ts b/src/router/index.ts index e6b72f0..a2e4a9b 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -87,6 +87,16 @@ const routes: RouteRecordRaw[] = [ name: "LayoutHome", component: () => import("@/views/home/index.vue"), }, + { + path: "market", + name: "LayoutMarket", + component: () => import("@/views/market/index.vue"), + }, + { + path: "create", + name: "Create", + component: () => import("@/views/instanceCreate/index.vue"), + }, { path: "admin", name: "Admin", diff --git a/src/views/instanceCreate/index.vue b/src/views/instanceCreate/index.vue new file mode 100644 index 0000000..e8b2638 --- /dev/null +++ b/src/views/instanceCreate/index.vue @@ -0,0 +1,1250 @@ + + + + + \ No newline at end of file diff --git a/src/views/layout/index.vue b/src/views/layout/index.vue index a616738..c2ec94e 100644 --- a/src/views/layout/index.vue +++ b/src/views/layout/index.vue @@ -81,7 +81,7 @@ watch(() => route.path, () => { // 菜单数据(key 使用子路径,如 '/admin') const leftRoutes = ref([ { key: '/home', label: '首页' }, - { key: '/center', label: '算力中心' }, + { key: '/market', label: '算力中心' }, { key: '/yunmain', label: '云主机' } ]) const rightRoutes = ref([ @@ -157,7 +157,7 @@ const logout = () => { .gx_layout_content { margin-top: 60px; - height: calc(100% - 60px); + min-height: calc(100% - 60px); background-color: rgba(240, 240, 240, 1); } } diff --git a/src/views/market/index.vue b/src/views/market/index.vue new file mode 100644 index 0000000..9719274 --- /dev/null +++ b/src/views/market/index.vue @@ -0,0 +1,1555 @@ + + + + + \ No newline at end of file