fix: page parameter for plugins

pull/5411/head
Tienson Qin 2022-05-24 01:18:45 +08:00
parent ce5f9965ed
commit 2f03dbb070
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@
(for [[_ {:keys [label] :as cmd} action pid] (state/get-plugins-commands-with-type :page-menu-item)]
{:title label
:options {:on-click #(commands/exec-plugin-simple-command!
pid (assoc cmd :page (state/get-current-page)) action)}}))
pid (assoc cmd :page page-name) action)}}))
(when developer-mode?
{:title "(Dev) Show page data"