From ca01c48c83f0f8b98949f9b6df322b7f22ebaed6 Mon Sep 17 00:00:00 2001 From: Administrator <2951979767@qq.com> Date: Wed, 21 Feb 2018 20:27:07 +0800 Subject: [PATCH] fix some bugs --- composer.json | 4 ++-- src/view/setting/addtopmenu.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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("添加成功,请重新打开界面");