瀏覽代碼

💄 保护区发展历程文字修改

imengyu 3 周之前
父節點
當前提交
6bc54a82d9
共有 3 個文件被更改,包括 5 次插入4 次删除
  1. 2 2
      src/pages/index.vue
  2. 1 1
      src/scripts/UpdateScript/postConfig.mjs
  3. 2 1
      src/scripts/UpdateScript/postUpdate.mjs

+ 2 - 2
src/pages/index.vue

@@ -65,11 +65,11 @@
       </div>
     </section>
 
-    <!-- 保护区大事记 -->
+    <!-- 保护区发展历程 -->
     <section class="main-section main-background main-background-type2">
       <div class="content">
         <div class="title">
-          <h2>保护区大事记</h2>
+          <h2>保护区发展历程</h2>
         </div>
 
         <SimplePageContentLoader :loader="recordData">

+ 1 - 1
src/scripts/UpdateScript/postConfig.mjs

@@ -31,7 +31,7 @@ export const config = {
   buildWebOutDir: '../../../.output', //构建输出目录。相对于当前文件目录
   buildWebOptions: {
     skipFiles: [
-      'server/node_modules',
+      '/server/node_modules',
     ],
   },
   buildWebOutVersionPath: '', //版本号输出目录,输出版本号至文件以供项目使用。相对于当前文件目录

+ 2 - 1
src/scripts/UpdateScript/postUpdate.mjs

@@ -233,6 +233,7 @@ export async function postAppUpdate(axiosInstance, param) {
       await aliOSSMultipartUpload(client, fileName, uploadFile, (p) => {
         bar1.update(p * 100);
       });
+      bar1.update(100);
       bar1.stop();
     }
 
@@ -337,7 +338,7 @@ export async function postWebUpdate(axiosInstance, param) {
         if (filestat.isDirectory()) {
           await loopDir(distDir + subPath, subPath);
         } else {
-          archive.file(distDir + subPath, { name: file });
+          archive.file(distDir + subPath, { name: subPath });
         }
       }
     }