mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 11:02:48 +08:00
优化粘贴提示;优化菜单导入清空缓存
This commit is contained in:
@@ -2438,6 +2438,10 @@
|
||||
|
||||
var targetElemName = $(v).data('paste-target');
|
||||
$(v).on('click', function () {
|
||||
if(!navigator.clipboard){
|
||||
admin.msg.error('您的当前不支持粘贴操作');
|
||||
return;
|
||||
}
|
||||
navigator.clipboard.readText()
|
||||
.then(text => {
|
||||
$(targetElemName).val(text);
|
||||
|
||||
Reference in New Issue
Block a user