wangrong
2026-08-30 761e5c5fa871959f60e15c971c8d83f2b53d0af5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { useI18n } from '@/hooks/web/useI18n'
 
export interface ShareInfo {
  id: string
  exp?: number
  uuid: string
  pwd?: string
  autoPwd: boolean
  ticketRequire?: boolean
}
 
export const SHARE_BASE = '/de-link/'
 
const { t } = useI18n()
 
export const shortcuts = [
  {
    text: t('commons.date.one_hour'),
    value: () => {
      const date = new Date()
      date.setTime(date.getTime() + 3600 * 1000)
      return date
    }
  },
  {
    text: t('commons.date.one_day'),
    value: () => {
      const date = new Date()
      date.setTime(date.getTime() + 3600 * 1000 * 24)
      return date
    }
  },
  {
    text: t('commons.date.one_week'),
    value: () => {
      const date = new Date()
      date.setTime(date.getTime() + 7 * 3600 * 1000 * 24)
      return date
    }
  }
]