1234567891011121314 |
- import { YYYYMMDDHHmmss } from "@/constants/constants";
- import moment from "moment";
- import { store } from "@/components/mark/store";
- export default {
- /** 返回YYYY-MM-DD HH:mm:ss */
- datetimeFilter(epochTime: number) {
- return moment(epochTime).format(YYYYMMDDHHmmss);
- },
- /** 根据fileServer得到完整的资源路径 */
- toCompleteUrl(path: string) {
- return store.setting.fileServer + path;
- },
- };
|