|
@@ -31,6 +31,7 @@
|
|
|
import WindturbineDetailPages from "../WindturbineDetailPages.vue";
|
|
|
import MatrixBlock from "../matrixBlock.vue";
|
|
|
import MessageBridge from 'utils/MessageBridge'
|
|
|
+ import api from "api/index";
|
|
|
export default {
|
|
|
name: 'gy-card',
|
|
|
components: {
|
|
@@ -148,12 +149,12 @@
|
|
|
},
|
|
|
suggestion(msg, headers) {
|
|
|
this.titleList = msg?JSON.parse(msg):this.$store.state.suggestion
|
|
|
- if(msg){
|
|
|
- // api.sendRecommend(this.titleList).then(res =>{
|
|
|
- // if(res){
|
|
|
-
|
|
|
- // }
|
|
|
- // })
|
|
|
+ if(msg&&JSON.parse(msg).length>0){
|
|
|
+ api.sendRecommend(this.titleList).then(res =>{
|
|
|
+ if(res){
|
|
|
+ console.log(res);
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
if (this.current === 0) {
|
|
|
let dateList = []
|