Browse Source

修改接口配置,添加备案信息

xiaoxin 3 years ago
parent
commit
b864c51cc2
5 changed files with 29 additions and 5 deletions
  1. 1 1
      .env.development
  2. 1 1
      .env.production
  3. 10 0
      src/layout/index.vue
  4. 14 0
      src/views/login/index.vue
  5. 3 3
      vue.config.js

+ 1 - 1
.env.development

@@ -2,4 +2,4 @@
 ENV = 'development'
 
 # base api
-VUE_APP_BASE_API = '/gradiate-school/reporting/'
+VUE_APP_BASE_API = '/reporting/'

+ 1 - 1
.env.production

@@ -2,4 +2,4 @@
 ENV = 'production'
 
 # base api
-VUE_APP_BASE_API = '/gradiate-school/reporting/'
+VUE_APP_BASE_API = '/reporting/'

+ 10 - 0
src/layout/index.vue

@@ -10,6 +10,12 @@
       </div>
       <!-- 内容区 -->
       <AppMain />
+      <!-- 备案区域 -->
+      <div class="foot">
+        <el-link href="https://beian.miit.gov.cn/" target="_blank">
+          备案号:赣ICP备18012639号-2
+        </el-link>
+      </div>
     </div>
   </div>
 </template>
@@ -46,4 +52,8 @@ import Navbar from './components/Navbar.vue'
 .sidebar-container {
   background-color: #1e7dfb;
 }
+
+.foot {
+  text-align: center;
+}
 </style>

+ 14 - 0
src/views/login/index.vue

@@ -63,6 +63,13 @@
     <div class="img_office">
       <img src="../../assets/login-office.png" />
     </div>
+
+    <!-- 备案区域 -->
+    <div class="foot">
+      <el-link href="https://beian.miit.gov.cn/" target="_blank">
+        备案号:赣ICP备18012639号-2
+      </el-link>
+    </div>
   </div>
 </template>
 
@@ -209,5 +216,12 @@ $cursor: #fff;
       height: 100%;
     }
   }
+
+  .foot {
+    position: absolute;
+    bottom: 50px;
+    left: 50%;
+    transform: translate(-50%);
+  }
 }
 </style>

+ 3 - 3
vue.config.js

@@ -3,15 +3,15 @@ const { defineConfig } = require('@vue/cli-service')
 const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
 
 module.exports = defineConfig({
-  publicPath: '/gradiate-school/manage/',
+  publicPath: '/',
   transpileDependencies: true,
   devServer: {
     // 配置反向代理
     proxy: {
       // 当地址中有/api的时候会触发代理机制
-      '/gradiate-school/reporting/': {
+      '/reporting/': {
         // 要代理的服务器地址  这里不用写 api
-        target: 'https://chtech.ncjti.edu.cn/',
+        target: 'https://jiangxih3cpartner.com/',
         changeOrigin: true // 是否跨域
       }
     }