Mr.Shi
2023-08-21 035ea93f7bbcfcc43bcc7adbb1d0504df6065947
改bug
已添加1个文件
已修改2个文件
42 ■■■■■ 文件已修改
screen_standard/src/App.vue 补丁 | 查看 | 原始文档 | blame | 历史
screen_standard/src/router/index.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen_standard/src/views/index.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen_standard/src/App.vue
screen_standard/src/router/index.js
@@ -1,5 +1,6 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import indexView from '../views/index.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
@@ -8,6 +9,11 @@
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/index',
      name: 'index',
      component: indexView
    }
  ]
})
screen_standard/src/views/index.vue
对比新文件
@@ -0,0 +1,36 @@
<template>
    <div class="content">
        <div class="content_left">1</div>
        <div class="content_center">2</div>
        <div class="content_right">3</div>
    </div>
</template>
<script setup>
</script>
<style lang="scss" scoped>
    .content {
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .content_left {
            width: 920px;
            background-color: aquamarine;
        }
        .content_center {
            flex: 1;
            margin: 0 40px;
            background-color: aquamarine;
        }
        .content_right {
            width: 920px;
            background-color: aquamarine;
        }
    }
</style>