bug
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="detail">
|
||||
<div class="detail" v-if="pageShow">
|
||||
<template v-if="detailObj">
|
||||
<div class="card">
|
||||
<header>{{detailObj.title}}</header>
|
||||
@@ -74,11 +74,15 @@
|
||||
data() {
|
||||
return {
|
||||
detailObj: {},
|
||||
pageShow: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.$loading()
|
||||
this.injectJWeixin(['sendChatMessage']).then(() => {
|
||||
this.getDetail()
|
||||
}).catch(() => {
|
||||
this.$hideLoading()
|
||||
})
|
||||
},
|
||||
|
||||
@@ -106,6 +110,8 @@
|
||||
}).then(res=>{
|
||||
if(res && res.data){
|
||||
this.detailObj = res.data;
|
||||
this.pageShow = true
|
||||
this.$hideLoading()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user