This commit is contained in:
kakkokari-gtyih 2024-12-16 10:18:51 +09:00
parent 32ee4d8c7a
commit de93d68c54
2 changed files with 7 additions and 9 deletions

View file

@ -635,12 +635,11 @@ function getMenu() {
type: 'switch',
text: i18n.ts.keepOriginalUploading,
ref: keepOriginal,
}, ...($i?.policies.canUseWatermark ? [{
}, {
type: 'switch',
text: i18n.ts.useWatermark,
ref: useWatermark,
}] as MenuItem[] : []
), { type: 'divider' }, {
}, { type: 'divider' }, {
text: i18n.ts.addFile,
type: 'label',
}, {

View file

@ -94,12 +94,11 @@ function select(src: HTMLElement | EventTarget | null, label: string | null, mul
type: 'switch',
text: i18n.ts.keepOriginalUploading,
ref: keepOriginal,
}, ...($i?.policies.canUseWatermark ? [{
type: 'switch',
text: i18n.ts.useWatermark,
ref: useWatermark,
}] as MenuItem[] : []
), {
}, {
type: 'switch',
text: i18n.ts.useWatermark,
ref: useWatermark,
}, {
text: i18n.ts.upload,
icon: 'ti ti-upload',
action: () => chooseFileFromPc(multiple, keepOriginal.value, useWatermark.value).then(files => res(files)),