diff --git a/Yi.Bbs.Vue3/src/components/Skeleton/index.vue b/Yi.Bbs.Vue3/src/components/Skeleton/index.vue
new file mode 100644
index 00000000..8f528ae7
--- /dev/null
+++ b/Yi.Bbs.Vue3/src/components/Skeleton/index.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
diff --git a/Yi.Bbs.Vue3/src/hooks/useAuths.js b/Yi.Bbs.Vue3/src/hooks/useAuths.js
index f87eaaee..8504448e 100644
--- a/Yi.Bbs.Vue3/src/hooks/useAuths.js
+++ b/Yi.Bbs.Vue3/src/hooks/useAuths.js
@@ -28,7 +28,7 @@ export default function useAuths(opt) {
// 获取token
const getToken = () => {
- return Session.get(TokenKey);
+ return Local.get(TokenKey);
};
// 存储token到cookies
@@ -36,13 +36,13 @@ export default function useAuths(opt) {
if (token == null) {
return false;
}
- Session.set(TokenKey, token);
+ Local.set(TokenKey, token);
return true;
};
// 删除token
const removeToken = () => {
- Session.remove(TokenKey);
+ Local.remove(TokenKey);
return true;
};
diff --git a/Yi.Bbs.Vue3/src/views/Discuss.vue b/Yi.Bbs.Vue3/src/views/Discuss.vue
index 4f77a5bb..7cec67e9 100644
--- a/Yi.Bbs.Vue3/src/views/Discuss.vue
+++ b/Yi.Bbs.Vue3/src/views/Discuss.vue
@@ -69,10 +69,14 @@
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -71,43 +76,63 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -125,7 +150,6 @@ import DisscussCard from "@/components/DisscussCard.vue";
import InfoCard from "@/components/InfoCard.vue";
import PlateCard from "@/components/PlateCard.vue";
import ScrollbarInfo from "@/components/ScrollbarInfo.vue";
-import AvatarInfo from "@/components/AvatarInfo.vue";
import BottomInfo from "@/components/BottomInfo.vue";
import VisitsLineChart from "./components/VisitsLineChart/index.vue";
import { access } from "@/apis/accessApi.js";
@@ -138,9 +162,11 @@ import {
getRecommendedFriend,
getRankingPoints,
} from "@/apis/analyseApi.js";
+import { getList as getAllDiscussList } from "@/apis/discussApi.js";
import PointsRanking from "./components/PointsRanking/index.vue";
import RecommendFriend from "./components/RecommendFriend/index.vue";
import ThemeData from "./components/RecommendTheme/index.vue";
+import Skeleton from "@/components/Skeleton/index.vue";
const plateList = ref([]);
const discussList = ref([]);
@@ -149,6 +175,7 @@ const weekList = ref([]);
const pointList = ref([]);
const friendList = ref([]);
const themeList = ref([]);
+const allDiscussList = ref([]);
const items = [{ user: "用户1" }, { user: "用户2" }, { user: "用户3" }];
//主题查询参数
@@ -175,6 +202,12 @@ onMounted(async () => {
friendList.value = friendData;
const { data: themeData } = await getRecommendedTopic();
themeList.value = themeData;
+ const { data: allDiscussData } = await getAllDiscussList({
+ Type: 0,
+ skipCount: 1,
+ maxResultCount: 5,
+ });
+ allDiscussList.value = allDiscussData.items;
});
const weekXAxis = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"];
diff --git a/Yi.Bbs.Vue3/src/views/home/components/PointsRanking/index.vue b/Yi.Bbs.Vue3/src/views/home/components/PointsRanking/index.vue
index bf040822..e3475291 100644
--- a/Yi.Bbs.Vue3/src/views/home/components/PointsRanking/index.vue
+++ b/Yi.Bbs.Vue3/src/views/home/components/PointsRanking/index.vue
@@ -8,7 +8,9 @@
{{ userLimit.label }}
- {{ pointsData.level }}
+ 等级{{ pointsData.level }}
diff --git a/Yi.Bbs.Vue3/src/views/home/components/RecommendFriend/index.vue b/Yi.Bbs.Vue3/src/views/home/components/RecommendFriend/index.vue
index b179d577..05c169ff 100644
--- a/Yi.Bbs.Vue3/src/views/home/components/RecommendFriend/index.vue
+++ b/Yi.Bbs.Vue3/src/views/home/components/RecommendFriend/index.vue
@@ -18,7 +18,9 @@
{{ userLimit.label }}
- {{ friendData.level }}
+ 等级{{ friendData.level }}