Szx 3 rokov pred
rodič
commit
69f471ba2c
4 zmenil súbory, kde vykonal 12 pridanie a 8 odobranie
  1. 1 1
      config/index.js
  2. 1 1
      src/api/config.js
  3. 6 4
      src/view/reader.vue
  4. 4 2
      src/view/yun.vue

+ 1 - 1
config/index.js

@@ -28,7 +28,7 @@ module.exports = {
     },
 
     // Various Dev Server settings
-    host: "0.0.0.0", // can be overwritten by process.env.HOST
+    host: "10.20.52.203", // can be overwritten by process.env.HOST
     port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
     autoOpenBrowser: false,
     errorOverlay: true,

+ 1 - 1
src/api/config.js

@@ -10,7 +10,7 @@ export async function login() {
   const timestamp = parseInt(new Date().valueOf() / 1000);
   let data = {
     timestamp,
-    send_order_id:localStorage.getItem('send_order_id') || ''
+    send_order_id: localStorage.getItem("sendid") || ""
   };
   let ret = await userLogin(data);
   if (ret) {

+ 6 - 4
src/view/reader.vue

@@ -376,17 +376,17 @@ export default {
     },
     next() {
       // 静默复制
-
       if (this.text.next_jump) {
         location.href = this.text.next_jump_url;
       } else {
         if (this.text.next_cid) {
           this.$router.replace({
-            path: `/reader/${this.getUuid()}`,
+            path: `/reader/${this.getUuid()}/`,
             query: {
               bid: this.text.bid,
               cid: this.text.next_cid,
-              uuids: this.uuids
+              uuids: this.uuids,
+              sendid: this.$route.query.sendid
             }
           });
         } else if (this.text.next_cid === 0) {
@@ -406,7 +406,8 @@ export default {
           query: {
             bid: this.text.bid,
             cid: this.text.prev_cid,
-            uuids: this.uuids
+            uuids: this.uuids,
+            sendid: this.$route.query.sendid
           },
           params: {
             jump: -1
@@ -721,6 +722,7 @@ export default {
     }
   },
   async created() {
+    localStorage.setItem("sendid", this.$route.query.sendid);
     let uuid = localStorage.getItem("uuids");
     let { yun, bid, cid, uuids } = this.$route.query;
     this.uuids = uuids || uuid;

+ 4 - 2
src/view/yun.vue

@@ -13,7 +13,7 @@ export default {
   created() {
     if (this.$route.params.id) {
       this.getYun();
-      localStorage.setItem("send_order_id",this.$route.params.id)
+      localStorage.setItem("send_order_id", this.$route.params.id);
     } else {
       this.$router.replace("/");
     }
@@ -25,7 +25,9 @@ export default {
         if (bid === 0) {
           this.$router.replace("/");
         } else {
-          this.$router.replace(`/reader?yun=1&bid=${bid}&cid=${cid}`);
+          this.$router.replace(
+            `/reader?yun=1&bid=${bid}&cid=${cid}&sendid=${this.$route.params.id}`
+          );
         }
       });
     }