Fix midjourney error (#226)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2025-07-19 13:31:09 +08:00
1 parent 6a36155252
commit 6e7787e827
14 files changed
+66 -85

No files matched your search

+2 -2
View File
@@ -12,8 +12,8 @@ interface IOptions {
export default {
install: (app: App, options: IOptions) => {
app.config.globalProperties.$dayjs = {
format(v: string, formatString: string = '') {
return dayjs(v).format(formatString || options.formatString);
format(v: string | undefined, formatString?: string) {
return v ? dayjs(v).format(formatString || options.formatString) : '';
}
};
}