|
@@ -26,6 +26,7 @@ getSystemConfig()
|
|
|
|
|
|
const chartInfo = ref(null)
|
|
|
function getChartDetail() {
|
|
|
+ chartInfo.value=null
|
|
|
apiChart.getChartDetail({
|
|
|
ChartInfoId:Number(chartId)
|
|
|
}).then(res => {
|
|
@@ -48,6 +49,10 @@ async function handleCollect() {
|
|
|
if(res.Ret===200){
|
|
|
Message.success(chartInfo.value.IsCollect?'取消收藏成功':'收藏成功')
|
|
|
chartInfo.value.IsCollect=!chartInfo.value.IsCollect
|
|
|
+ // 通知更新收藏列表
|
|
|
+ wx.miniProgram.postMessage({
|
|
|
+ data: 'refreshCollectList'
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
|