|
@@ -91,6 +91,7 @@ let resourceInfo = ref({
|
|
|
statusCode: '',
|
|
|
title: '',
|
|
|
hasTitle: false,
|
|
|
+ loadSuccess: false
|
|
|
});
|
|
|
|
|
|
const changeShowCom = (params) => {
|
|
@@ -111,6 +112,7 @@ const changeShowCom = (params) => {
|
|
|
statusCode: '',
|
|
|
title: '',
|
|
|
hasTitle: false,
|
|
|
+ loadSuccess: false
|
|
|
};
|
|
|
|
|
|
if(!params.appId || params.appId && !params.linkImagePath) {
|
|
@@ -151,6 +153,7 @@ const getResourceInfo = ({url}) => {
|
|
|
resourceInfo.value.contentType = res.headers['content-type'];
|
|
|
resourceInfo.value.statusCode = res.request.status;
|
|
|
resourceInfo.value.hasTitle = resourceInfo.value.contentType.indexOf('text/html') > -1 ? true : false;
|
|
|
+ resourceInfo.value.loadSuccess = true;
|
|
|
|
|
|
let siteTitle = '';
|
|
|
if(resourceInfo.value.hasTitle) {
|