소스 검색

修复 /console 登录页因 v-cloak 导致白屏。

登录页未挂载 Vue,去掉 v-cloak 并默认显示内容,避免前置脚本异常时页面一直隐藏。

Co-authored-by: Cursor <cursoragent@cursor.com>
yzw 4 달 전
부모
커밋
2f1de4a3e0
1개의 변경된 파일과 35개의 추가작업 그리고 34개의 파일을 삭제
  1. 35 34
      WebRoot/web/subassembly/app/pc/10011/10031/1001110031_run.jsp

+ 35 - 34
WebRoot/web/subassembly/app/pc/10011/10031/1001110031_run.jsp

@@ -1,32 +1,32 @@
-<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
-<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
-<%@ taglib uri="/WEB-INF/SpaceCoreApp.tld" prefix="app"%>
-<% pageContext.setAttribute(space.core.apps.common.ConstVars.MODULE_DM_KEY, "sys"); %>
-<!DOCTYPE html >
+<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<%@ taglib uri="/WEB-INF/SpaceCoreApp.tld" prefix="app"%>
+<% pageContext.setAttribute(space.core.apps.common.ConstVars.MODULE_DM_KEY, "sys"); %>
+<!DOCTYPE html >
 <html>
 
-<head> <!-- HEAD --> 
- <link rel="stylesheet" type="text/css" href="/css/reset.css"> 
- <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/element-ui@2.13.0/index.css"> 
- <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/layui/dist/css/layui.css"> 
- <link rel="stylesheet" type="text/css" href="/apps/space/css/SpaceIcon/iconfont.css"> 
- <link rel="stylesheet" type="text/css" href="/css/components.css"> 
- <link rel="stylesheet" href="/css/ckeditor.css"> 
- <script>var space = { vars: {} };</script> 
- <script src="/js/jquery1.11.3.min.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/apps/space/plug-in/element-resize-detector/element-resize-detector.min.js"></script> 
- <script src="/apps/space/plug-in/vue/vue.min.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/apps/space/plug-in/element-ui@2.13.0/index.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/js/space.vue.pc.subassembly.js"></script> 
- <script src="/apps/space/plug-in/layui/dist/layui.all.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/js/space.recycle.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/js/space.display.js" type="text/javascript" charset="utf-8"></script>
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
- <meta name="renderer" content="webkit"> 
- <link rel="icon" type="image/png" sizes="16x16" href="${curWebSiteObj.seoIcon}"> 
- <title>登录 - ${curWebSiteObj.seoTitle}</title> 
- <link rel="stylesheet" type="text/css" href="/css/login.css"> 
- <link rel="stylesheet" type="text/css" href="/css/animate.css"> 
+<head> <!-- HEAD --> 
+ <link rel="stylesheet" type="text/css" href="/css/reset.css"> 
+ <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/element-ui@2.13.0/index.css"> 
+ <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/layui/dist/css/layui.css"> 
+ <link rel="stylesheet" type="text/css" href="/apps/space/css/SpaceIcon/iconfont.css"> 
+ <link rel="stylesheet" type="text/css" href="/css/components.css"> 
+ <link rel="stylesheet" href="/css/ckeditor.css"> 
+ <script>var space = { vars: {} };</script> 
+ <script src="/js/jquery1.11.3.min.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/apps/space/plug-in/element-resize-detector/element-resize-detector.min.js"></script> 
+ <script src="/apps/space/plug-in/vue/vue.min.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/apps/space/plug-in/element-ui@2.13.0/index.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/js/space.vue.pc.subassembly.js"></script> 
+ <script src="/apps/space/plug-in/layui/dist/layui.all.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/js/space.recycle.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/js/space.display.js" type="text/javascript" charset="utf-8"></script>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
+ <meta name="renderer" content="webkit"> 
+ <link rel="icon" type="image/png" sizes="16x16" href="${curWebSiteObj.seoIcon}"> 
+ <title>登录 - ${curWebSiteObj.seoTitle}</title> 
+ <link rel="stylesheet" type="text/css" href="/css/login.css"> 
+ <link rel="stylesheet" type="text/css" href="/css/animate.css"> 
  <style type="text/css">
 		.login-content {
 			height: 100%;
@@ -89,12 +89,13 @@
      <script type="text/javascript">
        document.write("<div style='position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; width: 100%; height: 100%; padding-top: 30px;  background-color: #fff;overflow: auto;'><div style='font-size: 26px; padding-left:60px'><p style='margin-bottom: 30px;font-size: 30px; text-align:center;'>您的浏览器版本太低了,为了达到最佳的浏览效果</p><p style='margin-bottom: 30px;'>一、请使用高版本IE浏览器或者谷歌浏览器!<img src='/apps/space/images/login/Chrome.jpg' style='width:50px;display:inline-block;vertical-align:middle;' /></p>二、若您使用双核浏览器,如360浏览器,请您切换“极速模式”浏览!<p style='margin-top: 30px;font-size: 22px;'>(1)点击地址栏的内核切换按钮,可以手动切换浏览模式。</p><p style='margin: 30px 0;'><img src='/apps/space/images/login/3601.png'style='width:980px' /></p><p style='margin: 30px 0;font-size: 22px;'>(2)选择“极速模式”</p><p style='margin-bottom: 30px;'><img src='/apps/space/images/login/3602.png' style='width:980px' /></p></div></div>")
      </script>
-   <![endif]-->
+   <![endif]-->
 </head>
 
 <body>
 
-	<div v-cloak id="space-content">
+	<%-- 登录页未挂载 Vue,勿用 v-cloak;否则前置脚本异常时会一直 display:none 导致白屏 --%>
+	<div id="space-content" style="display:block;">
 		<div class="login-content">
 			<div class="login-logo">
 				<a href="javascript:;">
@@ -180,7 +181,7 @@
 
 <script type="text/javascript">
 
-	$("#space-content").show();
+	$("#space-content").removeAttr("v-cloak").show();
 	if (window.top != window.self) {
 		top.location.href = "/console";
 	}
@@ -302,9 +303,9 @@
 
 </script>
 
-<script type="text/javascript">space.vars.pageTypeCode = "10005";</script>
-<script type="text/javascript">space.vars.pageHashCode = "0stYP0tb3FG5Za5VXua8pQ==";</script>
-<script type="text/javascript" >removeTokens("<app:token name='sys.removeToken' />", '<%= pageContext.getAttribute(space.core.apps.common.ConstVars.TOKEN_SESSION_LIST_KEY) %>')</script>
+<script type="text/javascript">space.vars.pageTypeCode = "10005";</script>
+<script type="text/javascript">space.vars.pageHashCode = "0stYP0tb3FG5Za5VXua8pQ==";</script>
+<script type="text/javascript" >removeTokens("<app:token name='sys.removeToken' />", '<%= pageContext.getAttribute(space.core.apps.common.ConstVars.TOKEN_SESSION_LIST_KEY) %>')</script>
 </html>
 
 
@@ -313,4 +314,4 @@
 
 
 
-
+