浏览代码

调整大小

jwyu 3 年之前
父节点
当前提交
f6cf4b2f8b
共有 9 个文件被更改,包括 39 次插入13 次删除
  1. 1 1
      .env.product
  2. 2 2
      .env.test
  3. 1 0
      .gitignore
  4. 2 2
      README.md
  5. 二进制
      src/assets/404.png
  6. 13 6
      src/router/index.js
  7. 1 1
      src/style/global.scss
  8. 18 0
      src/views/404.vue
  9. 1 1
      src/views/activity/List.vue

+ 1 - 1
.env.product

@@ -1,3 +1,3 @@
 VITE_APP_API_URL="https://yanbao.hzinsights.com/api"
-VITE_APP_BASE_URL="/"
+VITE_APP_BASE_URL="/hzyb_pc"
 VITE_APP_OUTDIR="hongze_yb_pc"

+ 2 - 2
.env.test

@@ -1,3 +1,3 @@
-VITE_APP_API_URL="http://8.136.199.33:8612/api"
-VITE_APP_BASE_URL="/"
+VITE_APP_API_URL="https://ybpctest.hzinsights.com/api"
+VITE_APP_BASE_URL="/hzyb_pc"
 VITE_APP_OUTDIR="hongze_yb_pc"

+ 1 - 0
.gitignore

@@ -14,6 +14,7 @@ productDir
 testDir
 *.local
 package-lock.json
+hongze_yb_pc
 
 # Editor directories and files
 .vscode/*

+ 2 - 2
README.md

@@ -1,8 +1,8 @@
 # 弘则研报小程序PC版
 前端地址:
 测试
-https://ybpctest.hzinsights.com
+https://ybpctest.hzinsights.com/hzyb_pc
 
 生产
-https://ybpc.hzinsights.com
+https://ybpc.hzinsights.com/hzyb_pc
 

二进制
src/assets/404.png


+ 13 - 6
src/router/index.js

@@ -2,12 +2,12 @@ import { createRouter, createWebHistory } from "vue-router";
 import store from "@/store";
 
 const routes=[
-  // {
-  //   path: "/",
-  //   name: "Layout",
-  //   redirect:'/activity/list',
-  //   component: ()=>import("@/layout/Index.vue"),
-  // },
+  {
+    path: "/",
+    name: "Layout",
+    redirect:'/activity/list',
+    component: ()=>import("@/layout/Index.vue"),
+  },
 
   {
     path: "/activity",
@@ -94,6 +94,13 @@ const routes=[
         }
       }
     ]
+  },
+
+  {
+    path: '/:pathMatch(.*)',
+    name: 'error',
+    component: () => import("@/views/404.vue"),
+    meta: { title: '404' },
   }
 
 ]

+ 1 - 1
src/style/global.scss

@@ -6,7 +6,7 @@ body,
   height: 100%;
   font-size: 14px;
   color: #333;
-  min-width: 1080px;
+  min-width: 1024px;
 }
 
 div{

+ 18 - 0
src/views/404.vue

@@ -0,0 +1,18 @@
+<template>
+    <div class="nofound-page">
+        <img src="@/assets/404.png" alt="">
+        <p>404</p>
+    </div>
+</template>
+
+<style lang="scss" scoped>
+.nofound-page{
+    text-align: center;
+    font-size: 16px;
+    color: #666;
+    padding-top: 100px;
+    img{
+        width: 300px;
+    }
+}
+</style>

+ 1 - 1
src/views/activity/List.vue

@@ -342,7 +342,7 @@ const aduioIconDefault=new URL('../../assets/audio-pause-3.png', import.meta.url
         border: 1px solid #EBEBEB;
         border-radius: 4px;
         overflow: hidden;
-        min-width: 600px;
+        min-width: 580px;
         max-width: 900px;
         .item{
             border-bottom: 1px solid #EBEBEB;