Parcourir la source

Merge branch 'dev/v1.2.12_tsz' of jianyu/jy-docs into feature/v1.2.12

汤世哲 il y a 1 an
Parent
commit
d4c1631c4b
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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) {