Fix midjourney error (#226)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
6a36155252
commit
6e7787e827
14 files changed
+66
-85
No files matched your search
@@ -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) : '';
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user