Selaa lähdekoodia

fix: 去掉模版中的this

ChenYangfan 6 vuotta sitten
vanhempi
commit
f98cb4f09d

+ 2 - 2
src/views/student/tabs/StudentPersonal.vue

@@ -35,8 +35,8 @@
       <show-transition>
         <div v-if="showChangePassword">
           <div class="verified-code-wrapper">
-            <c-input placeholder="邮箱验证码" type="number" v-model="this.code"></c-input>
-            <c-button theme="blue" :no-click-warn="typeof this.emailButtonContent === typeof 0"
+            <c-input placeholder="邮箱验证码" type="number" v-model="code"></c-input>
+            <c-button theme="blue" :no-click-warn="typeof emailButtonContent === typeof 0"
                       @click="handleSendEmailCode">{{ emailButtonContent }}
             </c-button>
           </div>

+ 2 - 2
src/views/teacher/tabs/TeacherPersonal.vue

@@ -34,8 +34,8 @@
       <show-transition>
         <div v-if="showChangePassword">
           <div class="verified-code-wrapper">
-            <c-input placeholder="邮箱验证码" type="number" v-model="this.code"></c-input>
-            <c-button theme="blue" :no-click-warn="typeof this.emailButtonContent === typeof 0"
+            <c-input placeholder="邮箱验证码" type="number" v-model="code"></c-input>
+            <c-button theme="blue" :no-click-warn="typeof emailButtonContent === typeof 0"
                       @click="handleSendEmailCode">{{ emailButtonContent }}
             </c-button>
           </div>