Merge pull request #619 from dataease/pr@dev@fix_public_url_pwd_in_iframe

fix: 外部链接带密码嵌在iframe
This commit is contained in:
fit2cloud-chenyw 2021-08-13 14:01:59 +08:00 committed by GitHub
commit 3872db731b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<template>
<div style="height: 100%;">
<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" />
</div>
</template>
@ -49,6 +49,9 @@ export default {
this.showError()
})
},
refreshToken() {
this.loadInit()
},
//
showError() {

View File

@ -96,7 +96,8 @@ export default {
if (!res.data) {
this.msg = this.$t('pblink.pwd_error')
} else {
window.location.reload()
// window.location.reload()
this.$emit('fresh-token')
}
})
})