Przeglądaj źródła

修正开发环境版本设置

Michael Wang 5 lat temu
rodzic
commit
21b00cb48d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      prebuild.js

+ 2 - 2
prebuild.js

@@ -19,9 +19,9 @@ const revision = require("child_process")
 const fs = require("fs");
 console.log("  当前的git版本为 " + revision);
 
-fs.appendFileSync(
+fs.writeFileSync(
   ".env.development.local",
-  "VUE_APP_GIT_REPO_VERSION=开发环境-" + buildDate + " - " + revision
+  "\nVUE_APP_GIT_REPO_VERSION=开发环境-" + buildDate + " - " + revision
 );
 
 fs.writeFileSync(