| | |
| | | } from "./api";
|
| | |
|
| | | export default {
|
| | | created() {
|
| | | window.addEventListener("keydown", (event) => {
|
| | | if (event.keyCode === 9) {
|
| | | console.log("tabfalse13");
|
| | | event.preventDefault();
|
| | | }
|
| | | });
|
| | | },
|
| | | mounted() {
|
| | | this.getInitInfo();
|
| | | let message = "网络正常";
|
| | |
| | | this.$refs["carousel"].next();
|
| | | },
|
| | | async getInitInfo() {
|
| | | const res = await getInitInfo();
|
| | | const res = await getInitInfo().catch((err) => {
|
| | | this.isWhite = false;
|
| | | });
|
| | |
|
| | | if (true) {
|
| | | console.log(res);
|
| | |
|
| | | if (res.data && res.data.initPwd && !res.data.initRegInfo) {
|
| | | const res1 = await getRegInfo();
|
| | | this.active = 1;
|
| | | console.log(res1);
|
| | |
| | | }, 0);
|
| | | }
|
| | |
|
| | | /* if (res.data.initPwd && res.data.initRegInfo) {
|
| | | location.assign("/login");
|
| | | if (res.data && res.data.initPwd && res.data.initRegInfo) {
|
| | | location.assign("/view/login/");
|
| | | return;
|
| | | } */
|
| | | }
|
| | |
|
| | | this.isWhite = false;
|
| | | },
|
| | | },
|
| | | destroyed() {
|
| | | window.removeEventListener("keydown", (event) => {
|
| | | console.log(event.value);
|
| | | event.preventDefault();
|
| | | });
|
| | | },
|
| | | };
|
| | | </script>
|
| | |
|