WXL
2025-01-15 3a7caf4344d5911a3ee68d232e53887d6cc2ff6b
src/App.vue
@@ -2,7 +2,7 @@
  <div id="app">
    <router-view />
    <theme-picker />
    <Assistant />
    <!-- <Assistant v-if="routertf" /> -->
  </div>
</template>
@@ -14,6 +14,16 @@
  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 {
@@ -31,9 +41,11 @@
</script>
<style scoped>
#app {
  overflow: scroll;
  overflow-y: scroll;
  height: 100vh;
  background: #F8FAFD;
  background: #f8fafd;
  /* font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif, "宋体"; */
  font-family: "Hiragino Sans GB";
}
#app .theme-picker {
  display: none;