|
@@ -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">
|