浏览代码

reactor:请求配置调整;

zhangchong 7 月之前
父节点
当前提交
f1aba16e99
共有 5 个文件被更改,包括 17 次插入11 次删除
  1. 2 2
      src/stores/themeConfig.ts
  2. 0 1
      src/views/home/center.map.ts
  3. 6 3
      src/views/home/header.vue
  4. 6 3
      src/views/judicial/header.vue
  5. 3 2
      src/views/seats/header.vue

+ 2 - 2
src/stores/themeConfig.ts

@@ -49,7 +49,7 @@ export const useThemeConfig = defineStore("themeConfig", {
       this.themeConfig = data;
     },
   },
-  /*  // 开启数据缓存
+  // 开启数据缓存
   persist: {
     enabled: true,
     strategies: [
@@ -59,5 +59,5 @@ export const useThemeConfig = defineStore("themeConfig", {
         storage: sessionStorage,
       },
     ],
-  },*/
+  },
 });

+ 0 - 1
src/views/home/center.map.ts

@@ -7,7 +7,6 @@ const arrow = new Image();
 arrow.src = getImageUrl("home/map_select.png");
 const storesThemeConfig = useThemeConfig();
 const { themeConfig } = storeToRefs(storesThemeConfig);
-console.log(themeConfig.value);
 const layoutSize = computed(() => {
   switch (themeConfig.value.appScope) {
     case "YiBin":

+ 6 - 3
src/views/home/header.vue

@@ -24,7 +24,7 @@
   </div>
 </template>
 <script setup lang="ts">
-import { ref } from "vue";
+import { onMounted, ref } from "vue";
 import dayjs from "dayjs";
 import { shortcuts } from "@/utils/constants";
 import { useNow, useTitle } from "@vueuse/core";
@@ -36,8 +36,7 @@ const storesThemeConfig = useThemeConfig();
 const { themeConfig } = storeToRefs(storesThemeConfig);
 
 const emit = defineEmits(["changeDate"]);
-const title = ref(`${themeConfig.value.cityName}12345政务服务便民热线`);
-useTitle(title);
+const title = ref("12345政务服务便民热线");
 const now = useNow(); // 获取当前时间
 const timeValue = ref<any>([
   dayjs().subtract(1, "month").toDate(),
@@ -47,6 +46,10 @@ emit("changeDate", timeValue.value);
 const changeDate = (val: any) => {
   emit("changeDate", val);
 };
+onMounted(() => {
+  title.value = `${themeConfig.value.cityName}12345政务服务便民热线`;
+  useTitle(title.value);
+});
 </script>
 
 <style scoped lang="scss">

+ 6 - 3
src/views/judicial/header.vue

@@ -24,7 +24,7 @@
   </div>
 </template>
 <script setup lang="ts">
-import { ref } from "vue";
+import { onMounted, ref } from "vue";
 import dayjs from "dayjs";
 import { shortcuts } from "@/utils/constants";
 import { useNow, useTitle } from "@vueuse/core";
@@ -36,8 +36,7 @@ const storesThemeConfig = useThemeConfig();
 const { themeConfig } = storeToRefs(storesThemeConfig);
 const emit = defineEmits(["changeDate"]);
 
-const title = ref(`${themeConfig.value.cityName}司法行政执法监督子系统`);
-useTitle(title);
+const title = ref("司法行政执法监督子系统");
 const now = useNow(); // 获取当前时间
 
 const timeValue = ref<any>([
@@ -48,6 +47,10 @@ emit("changeDate", timeValue.value);
 const changeDate = (val: any) => {
   emit("changeDate", val);
 };
+onMounted(() => {
+  title.value = `${themeConfig.value.cityName}司法行政执法监督子系统`;
+  useTitle(title.value);
+});
 </script>
 
 <style scoped lang="scss">

+ 3 - 2
src/views/seats/header.vue

@@ -125,8 +125,6 @@ const props = defineProps({
     default: () => [],
   },
 });
-const title = ref(`${themeConfig.value.cityName}12345坐席监控中心`);
-useTitle(title);
 const now = useNow(); // 获取当前时间
 const state = reactive({
   dutyDialogVisible: false,
@@ -309,6 +307,7 @@ const getSeatsList = async () => {
     console.log(e);
   }
 };
+const title = ref("12345坐席监控中心");
 onMounted(() => {
   getSeatsList();
   // 接收消息
@@ -322,6 +321,8 @@ onMounted(() => {
       }, 500);
     }
   });
+  title.value = `${themeConfig.value.cityName}12345坐席监控中心`;
+  useTitle(title.value);
 });
 onUnmounted(() => {
   signalR.SR.off("SeatState");