11wqe1 3 هفته پیش
والد
کامیت
b1c9e34db7
1فایلهای تغییر یافته به همراه25 افزوده شده و 1 حذف شده
  1. 25 1
      src/views/HomeView.vue

+ 25 - 1
src/views/HomeView.vue

@@ -43,10 +43,12 @@
 									</div>
 								</div>
 							</div>
+							<div v-if="prefixL != 'liyuan_'" @click="backVersion" class="Version">
+								{{ lang.Returnoldversion }}
+							</div>
 							<el-button
 								type="text"
 								@click="handleLogout"
-								style="margin-left: 20px"
 								>{{ lang.exit }}</el-button
 							>
 						</div>
@@ -209,6 +211,15 @@ export default {
 		editInfo() {
 			this.$refs.userInfoA.openDig();
 		},
+		// 返回旧版本
+		backVersion(){
+			console.log(this.$region);
+			if (this.$region == 'beta') {
+				window.topU.location.href = 'https://beta.cloud.cocorobo.cn/index.html'
+			}else{
+				window.topU.location.href = 'https://cloud.cocorobo.cn/index.html'
+			}
+		},
 		// 打开平台应用工具
 		AddAppJson(val) {
 			console.log("AddAppJson", val);
@@ -512,6 +523,7 @@ export default {
 .person {
 	display: flex;
 	align-items: center;
+	gap: 15px;
 }
 
 .person_name {
@@ -567,4 +579,16 @@ export default {
 	/* overflow: visible;  */
 	z-index: 999;
 }
+
+.Version{
+	background: #f0f4fa;
+	border-radius: 50px 50px 50px 50px;
+	/* position: absolute; */
+	color: #060e17;
+	padding: 8px 10px;
+	font-size: 14px;
+	box-sizing: border-box;
+	/* right: 0; */
+	cursor: pointer;
+}
 </style>