This commit is contained in:
zhaofang
2022-06-23 15:07:48 +08:00
parent 24e64722b4
commit e46d0df6eb
2 changed files with 6 additions and 10 deletions

View File

@@ -181,10 +181,9 @@ export default {
this.isFavorite = newVal;
},
data(newVal,oldVal){
// console.log(newVal,'newVal');
// if(newVal && newVal.id!=''){
// this.checkHas();
// }
if(newVal && newVal.id!=''){
this.checkHas();
}
}
},
created(){

View File

@@ -40,7 +40,7 @@
<div class="case-summary"><span>{{ caseDetail.summary }}</span></div>
<div class="label" style="margin-top:10px">
<!-- <span style="margin-left:0px;" v-if="caseDetail.sysCreateTime">{{ caseDetail.sysCreateTime.substring(0,10) }}</span> -->
<interactBar :data="caseDetail" :type="3" :comments="false" :shares="true" :unicom="true"></interactBar>
<interactBar :data="caseDetail" :type="3" :readonly="Internet != 1" :comments="false" :shares="true" :unicom="true"></interactBar>
</div>
</el-card>
<el-card v-if="Internet == 1" :body-style="{ padding: '0px' }" class="jianjie" id="pdfPreview">
@@ -67,7 +67,7 @@
</div>
<div>
<div style="display:inline-block;">
<interactBar :data="caseDetail" :type="3" :comments="false" :shares="true" :unicom="true"></interactBar>
<interactBar :data="caseDetail" :type="3" :readonly="Internet != 1" :comments="false" :shares="true" :unicom="true"></interactBar>
</div>
<div style="display:inline-block;margin: 0 20px;">
<el-button type="primary" @click="goTop()">返回顶部</el-button>
@@ -221,12 +221,9 @@ export default {
xmlhttp.abort();
}, 5000);
xmlhttp.open("HEAD", "http://uapi.boe.com.cn",true);
// xmlhttp.open("HEAD", "https://u-pre.boe.com/web",true);
xmlhttp.send();
xmlhttp.onreadystatechange=function() {
// console.log(xmlhttp.readyState,"xmlhttp.readyState");
if (xmlhttp.readyState==4) {
console.log(xmlhttp.status,"xmlhttp.status");
if (xmlhttp.status==200){
clearTimeout(timer);
$this.Internet = 1;