From 211cd7469ebc7df813ffd320c90f64fd1c2f1aee Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期三, 09 二月 2022 10:55:20 +0800
Subject: [PATCH] 备份还原ui新
---
src/pages/index/App.vue | 30 ++++++++++++++++++++++++------
1 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/src/pages/index/App.vue b/src/pages/index/App.vue
index f998f5e..44594c8 100644
--- a/src/pages/index/App.vue
+++ b/src/pages/index/App.vue
@@ -28,7 +28,7 @@
</el-carousel>
<div class="control">
- <div class="pre" @click="preForm">涓婁竴姝�</div>
+ <div class="pre" @click="preForm" v-if="active != 0">涓婁竴姝�</div>
<div class="next" @click="nextForm" v-if="active == 0">涓嬩竴姝�</div>
<div class="next" @click="nextFormNot" v-if="active == 1">璺宠繃</div>
<div class="next" @click="nextForm" v-if="active == 1 && !isNet">
@@ -55,6 +55,14 @@
} from "./api";
export default {
+ created() {
+ window.addEventListener("keydown", (event) => {
+ if (event.keyCode === 9) {
+ console.log("tabfalse13");
+ event.preventDefault();
+ }
+ });
+ },
mounted() {
this.getInitInfo();
let message = "缃戠粶姝e父";
@@ -139,9 +147,13 @@
this.$refs["carousel"].next();
},
async getInitInfo() {
- const res = await getInitInfo();
+ const res = await getInitInfo().catch((err) => {
+ this.isWhite = false;
+ });
- if (res.data.initPwd && !res.data.initRegInfo) {
+ console.log(res);
+
+ if (res.data && res.data.initPwd && !res.data.initRegInfo) {
const res1 = await getRegInfo();
this.active = 1;
console.log(res1);
@@ -150,14 +162,20 @@
}, 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>
--
Gitblit v1.8.0