优化粘贴提示;优化菜单导入清空缓存

This commit is contained in:
augushong
2024-10-15 16:19:38 +08:00
parent 008e781d6b
commit c79ad6b986
2 changed files with 5 additions and 0 deletions

View File

@@ -276,6 +276,7 @@ class MenuBase extends AdminController
Db::rollback();
$this->error('导入失败:' . $th->getMessage());
}
TriggerService::updateMenu();
$this->success('导入成功');
}

View File

@@ -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);