|
@@ -145,15 +145,12 @@ const changeShowCom = (params) => {
|
|
}
|
|
}
|
|
|
|
|
|
const getResourceInfo = ({url}) => {
|
|
const getResourceInfo = ({url}) => {
|
|
- console.log(url)
|
|
|
|
axios.get(url).then(res => {
|
|
axios.get(url).then(res => {
|
|
-
|
|
|
|
if(res) {
|
|
if(res) {
|
|
resourceInfo.value.isSet = true;
|
|
resourceInfo.value.isSet = true;
|
|
resourceInfo.value.contentType = res.headers['content-type'];
|
|
resourceInfo.value.contentType = res.headers['content-type'];
|
|
resourceInfo.value.statusCode = res.request.status;
|
|
resourceInfo.value.statusCode = res.request.status;
|
|
resourceInfo.value.hasTitle = resourceInfo.value.contentType.indexOf('text/html') > -1 ? true : false;
|
|
resourceInfo.value.hasTitle = resourceInfo.value.contentType.indexOf('text/html') > -1 ? true : false;
|
|
- console.log(res, resourceInfo.value, 'resourceInfo')
|
|
|
|
|
|
|
|
let siteTitle = '';
|
|
let siteTitle = '';
|
|
if(resourceInfo.value.hasTitle) {
|
|
if(resourceInfo.value.hasTitle) {
|