本帖最后由 索昂软件 于 2023-6-16 14:26 编辑
【myApps/OBPM版本号】:MyApps5.0-sp2
【浏览器类型】:all
【问题描述】:
问题是这样的,使用单点登录,登录VUE皮肤界面后,按F5刷新页面后,页面就会一片空白。
不用单点登录,VUE皮肤刷新页面没问题。
用good皮肤单点登录后刷新页面也没问题。
想请求帮助看看问题出现在哪儿,下面是我们自己的单点登录页面index.jsp里的代码。这段代码用在good皮肤上是好使的。
由于此前在论坛反映的一些good皮肤下出现的问题,管理员回复都是让使用vue皮肤,但是用vue会出现别的问题,比如这个。
==========================================================================
<%
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
if (account != null&& !account.equals("") && !account.equals("null"))
{
jupmurl=basePath+"/obpm/api/runtime/secrets/11ed-3eea-40f2da71-97b2-13a4ad35f6c2/accessToken?loginNo="+account;
}
%>
<script type="text/JavaScript">
function jumpAjax(tokenUrl){
if(tokenUrl == ''){
window.location = '<%=basePath%>/oa/userlogin.jsp';
}else{
$.ajax({
url:tokenUrl,
type:'get',
dataType:'json',
data:{},
success:function (result) {
var data = result.data;
window.location = '<%=basePath%>/static/portal/vue/index.html?accessToken='+data;
//window.location = '<%=basePath%>/static/portal/good/index.html?accessToken='+data;
}
})
}
}
</script>
<a onclick="jumpAjax('<%=jupmurl%>')">工作流</a>
========================================================================
1、问题描述最好图文并茂,如有视频/脚本可直接放出,这样技术同事在处理该问题时效率更加高效哦~
2、如果该问题已得到解决,请在该帖子下回复\"已解决可结帖\" |