feat: add i18n
This commit is contained in:
parent
52c18e6a6c
commit
6c30e4412d
5 changed files with 48 additions and 18 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue