diff --git a/composer.json b/composer.json index 14f91f2..671be24 100755 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "yirius/icesui", "description": "a new admin ui for tp5", - "version": "0.4", + "version": "0.5", "type": "think-extend", "license": "MIT", "authors": [ @@ -22,7 +22,7 @@ "require": { "topthink/think-helper": ">=1.0.4", "topthink/think-installer": ">=1.0.10", - "topthink/think-captcha": "^2.0" + "topthink/think-captcha": ">=2.0" }, "extra": {} } diff --git a/src/view/setting/addtopmenu.html b/src/view/setting/addtopmenu.html index 224c6b3..d1bf215 100644 --- a/src/view/setting/addtopmenu.html +++ b/src/view/setting/addtopmenu.html @@ -68,7 +68,7 @@ } $.post("", {text: name, name: url, status: status, icon: icon, list_order: menu_listorder}, function(data){ if(data.code == 1){ - if({:input("param.id")}){ + if({:input("param.id", 0)}){ toastr.success("修改成功,请重新打开界面"); }else{ toastr.success("添加成功,请重新打开界面");