| | |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item prop="verify"> |
| | | <div style="display: flex; justify-content: space-between; width: 100%"> |
| | | <div |
| | | style="display: flex; justify-content: space-between; width: 100%" |
| | | > |
| | | <el-input |
| | | placeholder="请输入验证码(忽略大小写)" |
| | | v-model="ruleForm.verify" |
| | |
| | | type="primary" |
| | | class="nobr loginbtn btnbox" |
| | | @click="submitForm(ruleFormRef)" |
| | | >登录</el-button> |
| | | >登录</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | reactive, |
| | | defineProps, |
| | | defineEmits, |
| | | onUnmounted, |
| | | } from "vue"; |
| | | // import config from "../../public/config/config.js"; |
| | | //Router |
| | |
| | | } |
| | | }); |
| | | }; |
| | | const keyDown = (e) => { |
| | | //如果是回车则执行登录方法 |
| | | if (e.keyCode == 13) { |
| | | submitForm(ruleFormRef.value); |
| | | } |
| | | }; |
| | | onMounted(() => { |
| | | removeToken(); |
| | | //显示月球页面 |
| | | startURL(); |
| | | // |
| | | getPublicKey(); |
| | | window.addEventListener("keydown", keyDown); |
| | | }); |
| | | onUnmounted(() => { |
| | | window.removeEventListener("keydown", keyDown, false); |
| | | }); |
| | | </script> |
| | | <style lang="less" scoped> |