From c6a61bf9bf4d1ae57098aa26dcf2448ce6bb80e4 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 05 九月 2025 10:16:43 +0800
Subject: [PATCH] 测试完成
---
src/App.vue | 43 ++++++++++++++++++++++++++++++++++---------
1 files changed, 34 insertions(+), 9 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 29de49f..30d9a8f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -2,6 +2,7 @@
<div id="app">
<router-view />
<theme-picker />
+ <!-- <Assistant v-if="routertf" /> -->
</div>
</template>
@@ -10,18 +11,42 @@
export default {
name: "App",
- components: { ThemePicker },
- metaInfo() {
- return {
- title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
- titleTemplate: title => {
- return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
- }
- }
- }
+ components: {
+ ThemePicker,
+ Assistant: () => import("./components/Assistant"), //寮傛缁勪欢鍔犺浇鏂瑰紡
+ },
+ data() {
+ return {
+ routers: window.location.href,
+ routertf: true,
+ };
+ },
+ created() {
+ var startIndex = this.routers.indexOf("param5=") + "param5=".length; // 鎵惧埌绗竴涓瓧绗︾殑浣嶇疆
+ this.routertf = JSON.parse(this.routers.substring(startIndex)); // 鎴彇浠� 'param5=' 涔嬪悗鐨勫唴瀹�
+ },
+ metaInfo() {
+ return {
+ title:
+ this.$store.state.settings.dynamicTitle &&
+ this.$store.state.settings.title,
+ titleTemplate: (title) => {
+ return title
+ ? `${title} - ${process.env.VUE_APP_TITLE}`
+ : process.env.VUE_APP_TITLE;
+ },
+ };
+ },
};
</script>
<style scoped>
+#app {
+ overflow-y: scroll;
+ height: 100vh;
+ background: #f8fafd;
+ /* font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif, "瀹嬩綋"; */
+ font-family: "Hiragino Sans GB";
+}
#app .theme-picker {
display: none;
}
--
Gitblit v1.9.3