MyCATApache / Mycat-Web

Apache License 2.0
189 stars 222 forks source link

调整了菜单,清理一些调试代码 #112

Closed qiankunshe closed 8 years ago

qiankunshe commented 8 years ago

调整了菜单,清理一些调试代码

qiankunshe commented 8 years ago

在loadContext 有个这样的代码 zkPath = getParam(url, "zkpath"); zkId = getParam(url, "zkid");

//这个是现在的代码,做个简单的兼容,后期我会想办法调整 window.zkPath = getParam(url, "zkpath"); window.zkId = getParam(url, "zkid");

qiankunshe commented 8 years ago

增加 获得url参数方法 mwtools.getParam(name) url类似: http://127.0.0.1:8080/Mycat-web/#page/manger/jmx.html?id=1

新增本地session支持 mwtools.setSessionParam(name,value) mwtools.getSessionParam(name) 默认实现是 sessionStorage ,如果不支持使用 cookie