提交 6dff3e6a authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 外部链接带密码嵌在iframe

上级 1b71f74d
<template> <template>
<div style="height: 100%;"> <div style="height: 100%;">
<link-error v-if="showIndex===0" :resource-id="resourceId" /> <link-error v-if="showIndex===0" :resource-id="resourceId" />
<link-pwd v-if="showIndex===1" :resource-id="resourceId" /> <link-pwd v-if="showIndex===1" :resource-id="resourceId" @fresh-token="refreshToken" />
<link-view v-if="showIndex===2" :resource-id="resourceId" /> <link-view v-if="showIndex===2" :resource-id="resourceId" />
</div> </div>
</template> </template>
...@@ -49,6 +49,9 @@ export default { ...@@ -49,6 +49,9 @@ export default {
this.showError() this.showError()
}) })
}, },
refreshToken() {
this.loadInit()
},
// 显示无效链接 // 显示无效链接
showError() { showError() {
......
...@@ -96,7 +96,8 @@ export default { ...@@ -96,7 +96,8 @@ export default {
if (!res.data) { if (!res.data) {
this.msg = this.$t('pblink.pwd_error') this.msg = this.$t('pblink.pwd_error')
} else { } else {
window.location.reload() // window.location.reload()
this.$emit('fresh-token')
} }
}) })
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论