diff --git a/src/pages/News.vue b/src/pages/News.vue
index fbfbdc21..56cccc0d 100644
--- a/src/pages/News.vue
+++ b/src/pages/News.vue
@@ -8,6 +8,12 @@
+
+
+ mdi-bullhorn
+
+ 切换游戏内公告
+
// vue
import { onMounted, ref } from "vue";
+import { useRouter } from "vue-router";
import TLoading from "../components/t-loading.vue";
// tauri
import { dialog } from "@tauri-apps/api";
@@ -147,7 +154,6 @@ import MysOper from "../plugins/Mys";
import { createTGWindow } from "../utils/TGWindow";
// interface
import { NewsCard, NewsData } from "../plugins/Mys/interface/news";
-import { useRouter } from "vue-router";
// Store
const appStore = useAppStore();
@@ -189,6 +195,10 @@ onMounted(async () => {
loading.value = false;
});
+function switchAnno() {
+ router.push("/announcements");
+}
+
// 加载更多
async function loadMore(data: string) {
loadingSub.value = true;
@@ -322,6 +332,15 @@ async function searchPost() {
height: 150px;
transition: all 0.3s linear;
}
+/* switch */
+.switch-btn {
+ font-family: Genshin, serif;
+ background: #ffca0a;
+ height: 40px;
+ margin-right: 10px;
+ margin-top: 5px;
+ color: #546d8b;
+}
/* load more */
.load-news {
font-family: Genshin, serif;