Browse Source

fix: 点击收藏未登录跳转到登录

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 năm trước cách đây
mục cha
commit
dd9bc2769e
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      jydocs-mobile/src/views/details/details.vue

+ 5 - 0
jydocs-mobile/src/views/details/details.vue

@@ -623,6 +623,11 @@ export default class extends Vue {
   }
 
   canged () {
+    // 未登录跳转登录
+    if (!this.loginInfo) {
+      window.location.href = '/jyapp/free/login?to=back'
+      return
+    }
     if (this.collectd === 0) {
       this.getAdd({ docId: this.docIds }).then((res: any) => {
         if (res.error_code === 0) {