mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-13 06:02:49 +00:00
优化
This commit is contained in:
parent
b00a504801
commit
9592a61e72
@ -18,18 +18,20 @@ export const usePlugin = () => {
|
|||||||
if (e.dataTransfer) {
|
if (e.dataTransfer) {
|
||||||
const file = e.dataTransfer.files[0];
|
const file = e.dataTransfer.files[0];
|
||||||
|
|
||||||
ElMessageBox.confirm(
|
if (file.name.endsWith('.cool')) {
|
||||||
t('检测到插件「{name}」,是否安装?', { name: getName(file) }),
|
ElMessageBox.confirm(
|
||||||
t('提示'),
|
t('检测到插件「{name}」,是否安装?', { name: getName(file) }),
|
||||||
{
|
t('提示'),
|
||||||
type: 'warning',
|
{
|
||||||
confirmButtonText: t('安装')
|
type: 'warning',
|
||||||
}
|
confirmButtonText: t('安装')
|
||||||
)
|
}
|
||||||
.then(() => {
|
)
|
||||||
install(file);
|
.then(() => {
|
||||||
})
|
install(file);
|
||||||
.catch(() => null);
|
})
|
||||||
|
.catch(() => null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user