lex 1 年間 前
コミット
e12c321ead

+ 1 - 1
src/components/m-img-code/index.tsx

@@ -82,7 +82,7 @@ export default defineComponent({
           hideLoading: true,
           data: {
             clientId: this.clientId,
-            type: 'LOGIN',
+            type: this.type,
             mobile: this.phone
           }
         });

+ 1 - 0
src/views/creation/login-model/index.tsx

@@ -178,6 +178,7 @@ export default defineComponent({
             <MImgCode
               v-model:value={state.imgCodeStatus}
               phone={state.username}
+              type="REGISTER"
               onClose={() => {
                 state.imgCodeStatus = false;
               }}

+ 10 - 5
src/views/knowledge-library/unit-detail.tsx

@@ -58,8 +58,9 @@ export default defineComponent({
           }, 100);
           return;
         }
-      } catch {
+      } catch (e) {
         //
+        console.log(e);
       }
     };
 
@@ -85,8 +86,12 @@ export default defineComponent({
         throttleScale: 0,
         throttleRotate: 0
       });
-
+      console.log(moveable);
       moveable
+        .on('click', () => {
+          console.log('click');
+          onGotoModel();
+        })
         .on('dragStart', ({ target, clientX, clientY }) => {
           // console.log('onDragStart', target);
         })
@@ -172,12 +177,12 @@ export default defineComponent({
         </MSticky>
 
         <div class={[styles.containerSection, styles.woringSection]}>
-          {forms.dataInfo.desc && (
+          {forms.dataInfo?.desc && (
             <div
               class={styles.woringContent}
               v-html={forms.dataInfo.desc}></div>
           )}
-          {!forms.dataInfo.desc && !forms.loading && (
+          {!forms.dataInfo?.desc && !forms.loading && (
             <div class={styles.woringContent}>
               <MEmpty description="暂无内容" style={{ paddingTop: '40px' }} />
             </div>
@@ -188,7 +193,7 @@ export default defineComponent({
           id="iconExamQuestion"
           src={iconExamQuestion}
           class={styles.iconExamQuestion}
-          onClick={onGotoModel}
+          // onClick={onGotoModel}
         />
       </div>
     );