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