Commit cf77217baa6c8371174648e7348dd74e52591d02

Authored by wangfan
1 parent 80582e0f

fix "clear" bug

... ... @@ -264,7 +264,7 @@ Page({
form:JSON.parse(JSON.stringify(formTpl)),
tablesed:null,
})
App.Reserve.Detail({rid:_id,openid:''},true)
App.Reserve.Detail({rid:_id,openid:''},'clear')
wx.navigateTo({
url:'b_detail?id='+_id,
});
... ...
... ... @@ -34,6 +34,9 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0,
if(param){
cache_key+='?'+param.substr((param.length-1)*-1);
}
if(fouce=='clear' || fouce=='clean'){
return wx.removeStorageSync(cache_key);
}
if(!fouce && cachetime!=0){//优先使用缓存
let getCache= cache(cache_key);
if(getCache!=-99999){
... ...