LingxinMeng 10 月之前
父節點
當前提交
2aec1a9e8d

+ 3 - 2
electron/main.js

@@ -19,7 +19,8 @@ function createWindow() {
     });
 
     win.webContents.openDevTools(); // 打开开发者工具进行调试
-    win.loadURL('http://localhost:5173'); // 假设你的Vite开发服务器在3000端口运行
+    // win.loadURL('http://localhost:5173'); // 开发环境
+    win.loadURL('http://36.110.106.156:81'); // 生产环境
     console.log('Window created and URL loaded');
 }
 
@@ -109,4 +110,4 @@ ipcMain.on('docker-import', (event, sudoPassword, filePath, tag) => {
         console.log(`stdout: ${stdout}`);
         console.error(`stderr: ${stderr}`);
     });
-});
+});

+ 1 - 1
src/views/AlgorithmEvalView.vue

@@ -5,7 +5,7 @@
       <el-header
           style="height: 250px; background-color: rgba(255,0,0,50%); display: flex; flex-direction: column; justify-content: center; align-items: center;">
         <div class="demo-image" style="text-align: center;"> <!-- 注意这里添加了 text-align: center; 但对于块级元素这不是必需的 -->
-          <img src="../assets/pji-logo.jpg" alt="" style="max-width: 100%; height: auto;">
+          <img src="../assets/pji-logo.jpg" alt="" style="width:506.5px;height: 146px">
           <!-- 推荐使用 max-width 保持图片比例 -->
         </div>
       </el-header>

+ 1 - 1
src/views/MapRescanView.vue

@@ -5,7 +5,7 @@
       <el-header
           style="height: 250px; background-color: rgba(255,0,0,50%); display: flex; flex-direction: column; justify-content: center; align-items: center;">
         <div class="demo-image" style="text-align: center;"> <!-- 注意这里添加了 text-align: center; 但对于块级元素这不是必需的 -->
-          <img src="../assets/pji-logo.jpg" alt="" style="max-width: 100%; height: auto;">
+          <img src="../assets/pji-logo.jpg" alt="" style="width:506.5px;height: 146px">
           <!-- 推荐使用 max-width 保持图片比例 -->
         </div>
       </el-header>

+ 1 - 1
src/views/MapUpdateView.vue

@@ -4,7 +4,7 @@
       <el-header
           style="height: 250px; background-color: rgba(255,0,0,50%); display: flex; flex-direction: column; justify-content: center; align-items: center;">
         <div class="demo-image" style="text-align: center;"> <!-- 注意这里添加了 text-align: center; 但对于块级元素这不是必需的 -->
-          <img src="../assets/pji-logo.jpg" alt="" style="max-width: 100%; height: auto;">
+          <img src="../assets/pji-logo.jpg" alt="" style="width:506.5px;height: 146px">
           <!-- 推荐使用 max-width 保持图片比例 -->
         </div>
       </el-header>

+ 1 - 1
src/views/ReportView.vue

@@ -4,7 +4,7 @@
       <el-header
           style="height: 250px; background-color: rgba(255,0,0,50%); display: flex; flex-direction: column; justify-content: center; align-items: center;">
         <div class="demo-image" style="text-align: center;"> <!-- 注意这里添加了 text-align: center; 但对于块级元素这不是必需的 -->
-          <img src="../assets/pji-logo.jpg" alt="" style="width:506.5px;height: 146px ">
+          <img src="../assets/pji-logo.jpg" alt="" style="width:506.5px;height: 146px">
           <!-- 推荐使用 max-width 保持图片比例 -->
         </div>
       </el-header>

+ 1 - 1
src/views/TestRecordView.vue

@@ -5,7 +5,7 @@
       <el-header
           style="height: 250px; background-color: rgba(255,0,0,50%); display: flex; flex-direction: column; justify-content: center; align-items: center;">
         <div class="demo-image" style="text-align: center;"> <!-- 注意这里添加了 text-align: center; 但对于块级元素这不是必需的 -->
-          <img src="../assets/pji-logo.jpg" alt="" style="max-width: 100%; height: auto;">
+          <img src="../assets/pji-logo.jpg" alt="" style="width:506.5px;height: 146px">
           <!-- 推荐使用 max-width 保持图片比例 -->
         </div>
       </el-header>

+ 1 - 1
src/views/UpdateStatView.vue

@@ -4,7 +4,7 @@
       <el-header
           style="height: 250px; background-color: rgba(255,0,0,50%); display: flex; flex-direction: column; justify-content: center; align-items: center;">
         <div class="demo-image" style="text-align: center;"> <!-- 注意这里添加了 text-align: center; 但对于块级元素这不是必需的 -->
-          <img src="../assets/pji-logo.jpg" alt="" style="max-width: 100%; height: auto;">
+          <img src="../assets/pji-logo.jpg" alt="" style="width:506.5px;height: 146px">
           <!-- 推荐使用 max-width 保持图片比例 -->
         </div>
       </el-header>