Bläddra i källkod

修改打包路径及动画路径

plg 1 år sedan
förälder
incheckning
c850f13e6c

+ 4 - 4
src/main/index.js

@@ -63,11 +63,11 @@ let jar_time = null;
 //设置访问路径
 //打包访问的路径
 
-// let serveUrl = "./resources/exe"
-// let serveUrlJar = '\\resources\\exe'
+let serveUrl = "./resources/exe"
+let serveUrlJar = '\\resources\\exe'
 //本地访问的路径
-let serveUrl = "./exe"
-let serveUrlJar = '\\exe'
+// let serveUrl = "./exe"
+// let serveUrlJar = '\\exe'
 /**
  * Set `__static` path to static files in production
  * https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html

+ 14 - 24
src/renderer/components/AnimationDes.vue

@@ -386,11 +386,8 @@ export default {
       focusNao: [],
       // 全量
       focusNaoAll: [],
-      // urlThreeP: "../../../static/candle/index.html",
-      // urlThreeP: __static + "/candle/index.html",
-      urlThreeP: "../../../static/loong_3/index.html",
-      // urlThreeP: __static + "/balance/index.html",
-      // pubSrc: "../../../static",
+      // urlThreeP: "../../../static/loong_3/index.html",
+      urlThreeP: __static + "/loong_3/index.html",
       pubsrc: __static,
       userLink: {
         num: "",
@@ -1644,45 +1641,38 @@ export default {
       this.clearDataFun();
       switch (val) {
         case 1:
-          //this.urlThreeP = this.pubSrc + "/candle/index.html";
-          // this.urlThreeP = pubSrc+ + "/candle/index.html";
-          this.urlThreeP = "../../../static/loong_3/index.html";
-          // this.urlThreeP = __static + "/long/index.html";
+          // this.urlThreeP = "../../../static/loong_3/index.html";
+          this.urlThreeP = __static + "/loong_3/index.html";
           this.delayTime();
           break;
         case 2:
-          this.urlThreeP = "../../../static/mabenpao/index.html";
-          // this.urlThreeP = this.pubSrc + "/flower/index.html";
-          //this.urlThreeP = __static + "/mabenpao/index.html";
+          // this.urlThreeP = "../../../static/mabenpao/index.html";
+          this.urlThreeP = __static + "/mabenpao/index.html";
           this.delayTime();
           break;
         case 3:
-          this.urlThreeP = "../../../static/tianqi/index.html";
-          // this.urlThreeP = this.pubSrc + "/car/index.html";
-          //this.urlThreeP = __static + "/tianqi/index.html";
+          // this.urlThreeP = "../../../static/tianqi/index.html";
+          this.urlThreeP = __static + "/tianqi/index.html";
           this.delayTime();
           break;
         case 4:
-          // this.urlThreeP = this.pubSrc + "/baobaotong/index.html";
-          this.urlThreeP = "../../../static/yanhua/index.html";
-          //this.urlThreeP = __static + "/yanhua/index.html";
+          // this.urlThreeP = "../../../static/yanhua/index.html";
+          this.urlThreeP = __static + "/yanhua/index.html";
           this.delayTime();
           break;
         case 5:
-          this.urlThreeP = "../../../static/saiche/index.html";
-          // this.urlThreeP = this.pubSrc + "/bomb/index.html";
-          // this.urlThreeP = __static + "/saiche/index.html";
+          // this.urlThreeP = "../../../static/saiche/index.html";
+          this.urlThreeP = __static + "/saiche/index.html";
           this.delayTime();
           break;
         case 6:
-          // this.urlThreeP = this.pubSrc + "/piaofuqiu/index.html";
+          // this.urlThreeP = "../../../static/saiche/index.html";
           this.urlThreeP = __static + "/piaofuqiu/index.html";
           this.delayTime();
           break;
         default:
           this.urlThreeP = "../../../static/loong_3/index.html";
-        // this.urlThreeP = this.pubSrc + "/candle/index.html";
-        // this.urlThreeP = __static + "/candle/index.html";
+        // this.urlThreeP = __static + "/loong_3/index.html";
       }
       this.gameScene = val;
       this.flag = this.gameScene;

+ 9 - 13
src/renderer/components/AnimationDouble.vue

@@ -499,9 +499,8 @@ export default {
       focusNao: [],
       // 全量
       focusNaoAll: [],
-      urlThreeP: "../../../static/tianping/index.html",
-      // urlThreeP: __static + "/tianping/index.html",
-      // pubSrc: "../../../static",
+      // urlThreeP: "../../../static/tianping/index.html",
+      urlThreeP: __static + "/tianping/index.html",
       pubsrc: __static,
       userLink: {
         num: "",
@@ -2323,21 +2322,18 @@ export default {
       this.clearDataFun();
       switch (val) {
         case 1:
-          // this.urlThreeP = this.pubSrc + "/candle/index.html";
-          //this.urlThreeP = this.pubSrc + "/candle/index.html";
-          // this.urlThreeP = __static + "/tianping/index.html";
-          this.urlThreeP = "../../../static/tianping/index.html";
+          this.urlThreeP = __static + "/tianping/index.html";
+          // this.urlThreeP = "../../../static/tianping/index.html";
           this.delayTime();
           break;
         case 2:
-          //this.urlThreeP = this.pubSrc + "/flower/index.html";
-          // this.urlThreeP = __static + "/run/index.html";
-          this.urlThreeP = "../../../static/run/index.html";
+          this.urlThreeP = __static + "/run/index.html";
+          // this.urlThreeP = "../../../static/run/index.html";
           this.delayTime();
           break;
         case 3:
-          //this.urlThreeP = this.pubSrc + "/car/index.html";
-          this.urlThreeP = __static + "/car/index.html";
+          this.urlThreeP = this.pubSrc + "/car/index.html";
+          // this.urlThreeP = __static + "/car/index.html";
           this.delayTime();
           break;
         case 4:
@@ -2357,7 +2353,7 @@ export default {
           break;
         default:
           // this.urlThreeP = this.pubSrc + "/candle/index.html";
-          this.urlThreeP = __static + "/candle/index.html";
+          this.urlThreeP = __static + "/tianping/index.html";
       }
       this.gameScene = val;
       this.flag = this.gameScene;