Kaynağa Gözat

精读跳转条件

natasha 5 ay önce
ebeveyn
işleme
7cca13928a
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/components/common/BookPeruseCard.vue

+ 2 - 2
src/components/common/BookPeruseCard.vue

@@ -192,7 +192,7 @@ export default {
       return { newarr, timeArr, rateArr };
     },
     async handleLink() {
-      if (this.LoginNavIndex === 1) {
+      if (this.LoginNavIndex === 0) {
         let MethodName = "/ShopServer/Client/BookshelfQuery/SetMyGoodsIsLooked";
         let data = {
           goods_id: this.item.id,
@@ -201,7 +201,7 @@ export default {
         await getLogin(MethodName, data).then((res) => {});
       }
       let url = this.LoginNavIndex + "&&&1&&&2&&&3&&&" + this.previousPage;
-      if (!this.$route.query.from && this.LoginNavIndex !== 1) {
+      if (!this.$route.query.from && this.LoginNavIndex !== 0) {
         this.$router.push({
           path: "/bookPeruseItem",
           query: {