Explorar el Código

修改退出,隐藏埋点浏览器输出

11wqe1 hace 2 semanas
padre
commit
eff466dc1b
Se han modificado 2 ficheros con 31 adiciones y 2 borrados
  1. 1 1
      src/mixins/mixin.js
  2. 30 1
      src/views/HomeView.vue

+ 1 - 1
src/mixins/mixin.js

@@ -90,7 +90,7 @@ export const myMixin = {
         object: JSON.stringify(object), //执行信息传json
         status: status //成功返回success。失败返回error的信息
       };
-      console.log('...',params);
+      // console.log('...',params);
       
 
       this.$ajax

+ 30 - 1
src/views/HomeView.vue

@@ -153,6 +153,32 @@
 					scrolling="no"></iframe>
 			</div>
 		</el-drawer>
+		<div
+			v-if="lutloading"
+			style="
+				position: absolute;
+				left: 0;
+				top: 0;
+				width: 100%;
+				height: 100%;
+				background-color: #fff;
+				display: flex;
+				justify-content: center;
+				align-items: center;
+				z-index: 9999;
+			"
+		>
+			<div
+				style="display: flex; flex-direction: column; align-items: center"
+			>
+				<img
+					style="height: 75px; transform: scale(2)"
+					src="../assets/img/cocoloading.gif"
+					alt=""
+				/>
+				<div style="color: #0354d7">{{ lang.Loadingdes }}</div>
+			</div>
+		</div>
 	</div>
 </template>
 
@@ -233,6 +259,7 @@ export default {
 	},
 	data() {
 		return {
+			lutloading:false,
 			xiaokeDia: false,
 			Full_Screen:false,
 			fullScreen:require('../assets/img/fullScreen.png'),
@@ -446,7 +473,7 @@ export default {
 				type: "warning",
 			})
 				.then(async () => {
-					this.loading = true;
+					this.lutloading = true;
 					loginOut()
 						.then(async () => {
 							this.$message({
@@ -454,6 +481,8 @@ export default {
 								type: "success",
 							});
 							await this.logout();
+							this.lutloading = false;
+
 							// this.$router.push("/login");
 						})
 						.catch((err) => {