|
@@ -147,12 +147,12 @@ const getDetail = () => {
|
|
|
iframe.onerror = () => {
|
|
|
state.status = '网页错误'
|
|
|
}
|
|
|
- iframe.onload = () => {
|
|
|
- if (state.status == '加载' || state.status == 'iframe') {
|
|
|
- state.show_btn = true
|
|
|
- state.status = 'iframe'
|
|
|
- }
|
|
|
- }
|
|
|
+ // iframe.onload = () => {
|
|
|
+ // if (state.status == '加载' || state.status == 'iframe') {
|
|
|
+ // state.show_btn = true
|
|
|
+ // state.status = 'iframe'
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
getPostDetail({
|
|
|
params: {
|
|
@@ -172,6 +172,8 @@ const getDetail = () => {
|
|
|
if (state.detail.viewBgImagePath) {
|
|
|
state.cover_url = state.detail.viewBgImagePath
|
|
|
}
|
|
|
+ state.show_btn = true
|
|
|
+ state.status = 'iframe'
|
|
|
state.iframe_url = state.detail.convertUrl
|
|
|
} else {
|
|
|
state.status = '网页错误'
|