mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
优化粘贴提示;优化菜单导入清空缓存
This commit is contained in:
@@ -276,6 +276,7 @@ class MenuBase extends AdminController
|
||||
Db::rollback();
|
||||
$this->error('导入失败:' . $th->getMessage());
|
||||
}
|
||||
TriggerService::updateMenu();
|
||||
$this->success('导入成功');
|
||||
}
|
||||
|
||||
|
||||
@@ -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