|
|
|
@ -143,7 +143,7 @@
|
|
|
|
|
import PostCard from './PostCard.vue';
|
|
|
|
|
import PostForm from './Postform.vue';
|
|
|
|
|
import axios from '@/utils/axiosConfig';
|
|
|
|
|
// import {getToken} from '@/token/auth'
|
|
|
|
|
import {getUserId} from '@/token/auth'
|
|
|
|
|
export default {
|
|
|
|
|
name: 'CommunityIndex', // 添加组件名称
|
|
|
|
|
components: { PostCard, PostForm },
|
|
|
|
@ -193,6 +193,7 @@
|
|
|
|
|
|
|
|
|
|
async loadData() {
|
|
|
|
|
try {
|
|
|
|
|
this.userid= getUserId();
|
|
|
|
|
// 确保异步操作按顺序执行
|
|
|
|
|
await this.fllowlist();
|
|
|
|
|
await this.loadhotpost();
|
|
|
|
|