feat: add i18n

This commit is contained in:
Methapon Metanipat 2024-08-28 15:07:31 +07:00
parent 52c18e6a6c
commit 6c30e4412d
5 changed files with 48 additions and 18 deletions

View file

@ -88,9 +88,9 @@ const useEmployeeStore = defineStore('api-employee', () => {
const _name = file.name;
const _ext = _name.split('.').at(-1);
let filename = group || 'other' + '-' + Date.now();
let filename = (group || 'other') + '-' + Date.now();
if (_ext) filename += '.' + _ext;
if (_ext) filename = filename + '.' + _ext;
await uploadAttachment(res.data.id, file, filename);
}