瀏覽代碼

精读跳转条件

natasha 5 月之前
父節點
當前提交
7cca13928a
共有 1 個文件被更改,包括 2 次插入2 次删除
  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: {