|
@@ -290,7 +290,7 @@ const onContextMenu = (item, event) => {
|
|
|
const info = {
|
|
|
groupId: item.id,
|
|
|
name: $i('message.untitled'),
|
|
|
- script: `return 'Hello magic-api'`,
|
|
|
+ script: config.defaultScript || `return 'Hello magic-api'`,
|
|
|
path: config.requirePath ? '' : undefined
|
|
|
}
|
|
|
updateNode(info)
|