chenlei 5 miesięcy temu
rodzic
commit
5a9a2635fc

+ 3 - 3
packages/base/src/utils.js

@@ -17,11 +17,11 @@ export function checkDeviceAndRedirect() {
   const isMobileDevice = isMobile();
   const currentPath = window.location.pathname;
   const isInMobilePath = currentPath.includes("/mobile/");
-  const isInPCPath = currentPath.includes("/pc/");
+  const isInPCPath = currentPath.includes("/web/");
 
   if (isMobileDevice && !isInMobilePath) {
-    window.location.href = currentPath.replace("/pc/", "/mobile/");
+    window.location.href = currentPath.replace("/web/", "/mobile/");
   } else if (!isMobileDevice && !isInPCPath) {
-    window.location.href = currentPath.replace("/mobile/", "/pc/");
+    window.location.href = currentPath.replace("/mobile/", "/web/");
   }
 }

+ 1 - 1
packages/mobile/.env.production

@@ -1 +1 @@
-VITE_BASE_URL=
+VITE_BASE_URL=http://192.168.20.245:8011

+ 1 - 1
packages/mobile/index.html

@@ -5,7 +5,7 @@
     <link rel="icon" href="/favicon.ico" />
     <link rel="stylesheet" href="/lib/leaflet.css" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <title>南京陆军工程大学数字史馆门户网站</title>
+    <title>陆军工程大学校史馆</title>
   </head>
   <body>
     <div id="app"></div>

BIN
packages/mobile/src/assets/images/bg-min.jpg


+ 2 - 2
packages/mobile/src/components/TopNav.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="topnav">
     <i class="topnav-logo" />
-    <h3 class="limit-line">武警北京市总执勤第十三支队数字史馆</h3>
+    <h3 class="limit-line">陆军工程大学校史馆</h3>
     <i class="topnav-menu" @click="menuVisible = !menuVisible" />
   </div>
 
@@ -32,7 +32,7 @@ const menuVisible = ref(false);
 
   &-logo {
     position: absolute;
-    top: -8px;
+    top: -4px;
     left: 15px;
     display: block;
     width: 104px;

+ 2 - 2
packages/mobile/src/main.js

@@ -12,9 +12,9 @@ import "vant/lib/image-preview/style/index";
 import App from "./App.vue";
 import router from "./router";
 
-// import { isDevelopment, checkDeviceAndRedirect } from "@nj/base";
+import { isDevelopment, checkDeviceAndRedirect } from "@nj/base";
 
-// !isDevelopment && checkDeviceAndRedirect();
+!isDevelopment && checkDeviceAndRedirect();
 
 const app = createApp(App);
 

+ 3 - 3
packages/mobile/src/views/Scene/components/Danmaku.vue

@@ -153,9 +153,9 @@ export default {
           } else {
             this.autoIndex = 0;
             this.showDanmakuData.push(this.danmuArr[this.autoIndex]);
-            if (this.showDanmakuData.length > 50) {
-              this.showDanmakuData.splice(0, 50);
-            }
+          }
+          if (this.showDanmakuData.length > 20) {
+            this.showDanmakuData.shift();
           }
 
           this.$nextTick(() => {