Browse Source

chore: lint

pull/6869/head
Jin Mao 3 months ago
parent
commit
f8a7a0a9a2
  1. 6
      packages/@core/base/shared/src/utils/date.ts
  2. 11
      packages/stores/src/modules/timezone.ts

6
packages/@core/base/shared/src/utils/date.ts

@ -1,6 +1,6 @@
import dayjs from 'dayjs';
import timezone from 'dayjs/plugin/timezone';
import utc from 'dayjs/plugin/utc';
import dayjs from "dayjs";
import timezone from "dayjs/plugin/timezone";
import utc from "dayjs/plugin/utc";
dayjs.extend(utc);
dayjs.extend(timezone);

11
packages/stores/src/modules/timezone.ts

@ -1,12 +1,9 @@
import { ref, unref } from 'vue';
import { ref, unref } from "vue";
import { DEFAULT_TIME_ZONE_OPTIONS } from '@vben-core/preferences';
import {
getCurrentTimezone,
setCurrentTimezone,
} from '@vben-core/shared/utils';
import { DEFAULT_TIME_ZONE_OPTIONS } from "@vben-core/preferences";
import { getCurrentTimezone, setCurrentTimezone } from "@vben-core/shared/utils";
import { acceptHMRUpdate, defineStore } from 'pinia';
import { acceptHMRUpdate, defineStore } from "pinia";
interface TimezoneHandler {
getTimezone?: () => Promise<null | string | undefined>;

Loading…
Cancel
Save