明梦爽
2021-11-11 6a1866f5271dd59f1df1c70fdbfeba1591bfa7c3
登录完成
3个文件已修改
30 ■■■■■ 已修改文件
src/components/Home.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Home.vue
@@ -5,7 +5,9 @@
      <div>
        <img src="../assets/xiaohui4.png" alt="" />
      </div>
      <div class="bg"></div>
      <div>
        <img src="../assets/bg.png" alt="">
      </div>
    </el-header>
    <!-- 主页导航栏 -->
    <el-row>
@@ -82,25 +84,15 @@
  height: 100%;
}
.el-header {
  background: -webkit-linear-gradient(
    left,
    rgb(5, 102, 141),
    rgb(240, 243, 189)
  );
  background: -o-linear-gradient(right, rgb(5, 102, 141), rgb(240, 243, 189));
  background: -moz-linear-gradient(right, rgb(5, 102, 141), rgb(240, 243, 189));
  background: linear-gradient(to right, rgb(5, 102, 141), rgb(240, 243, 189));
  background-color: rgb(1, 72, 153);
}
.el-header {
  height: 93px !important;
  height: 120px !important;
  padding: 0 40px;
  overflow: hidden;
  div {
    display: flex;
    justify-content: left;
  }
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.el-menu {
  .el-menu-item {
src/main.js
@@ -10,7 +10,7 @@
import axios from 'axios'
// 配置请求的跟路径
axios.defaults.baseURL = 'http://10.2.33.200:8081'
axios.defaults.baseURL = 'http://8.140.68.52:8181'
axios.interceptors.request.use(config => {
  // console.log(config)
  config.headers.Authorization = window.sessionStorage.getItem('token')
vue.config.js
@@ -4,7 +4,7 @@
    devServer: {
      proxy: {
        '/api': {
          target: 'http://10.2.33.200',
          target: 'http://8.140.68.52',
          changeOrigin: true,
          ws:true,
          pathRewrite: {