+
@@ -31,31 +32,20 @@ export default {
list: [{
}],
- starList: [
- {
- title: "2023招生季[你好 招生官]",
- text: "[权威、官方]的第一手信息。"
- },
- {
- title: "2023招生季[你好 招生官]",
- text: "全球博士项目信息发布,查找23fall博士交流群 点击加入微信群 QQ群号461086769"
- },
- {
- title: "2023招生季[你好 招生官]",
- text: "[权威、官方]的第一手信息。"
- }
- ],
- showList: []
}
},
methods: {
allClick(index) {
this.allActive = index
},
- starClick(k) {
+ starClick(k, fid) {
// if (this.starList[k].checked) this.starList[k].checked = false
// else this.starList[k].checked = true
-
+ this.$http.post("/api/operation/forumFav", {
+ fid
+ }).then(res => {
+ console.log(res);
+ })
this.$forceUpdate()
},
@@ -64,6 +54,7 @@ export default {
this.$http.post("/api/home/allForum").then((res) => {
if (res.code != 200) return;
this.list = res.data
+ console.log("res.data", res.data);
}).catch(err => {
this.$message.error(err.message)
diff --git a/src/views/user/UserIndex.vue b/src/views/user/UserIndex.vue
index fc9e9ad..a8153eb 100755
--- a/src/views/user/UserIndex.vue
+++ b/src/views/user/UserIndex.vue
@@ -133,7 +133,7 @@