mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-03 22:21:13 +00:00
增加判断插件启用状态显示配置提示 (#1562)
This commit is contained in:
parent
927797f3d5
commit
e5108c0427
@ -222,7 +222,9 @@ export default function PluginPage () {
|
||||
onToggleStatus={() => handleToggle(plugin)}
|
||||
onUninstall={() => handleUninstall(plugin)}
|
||||
onConfig={() => {
|
||||
if (plugin.hasConfig) {
|
||||
if (plugin.status !== 'active') {
|
||||
toast.error('未启用插件,无法配置插件');
|
||||
} else if (plugin.hasConfig) {
|
||||
handleConfig(plugin);
|
||||
} else {
|
||||
toast.error('此插件没有配置哦');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user