mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
feature(dom) getDataFromCache: add !hash
This commit is contained in:
parent
1d42aed7eb
commit
b7d4277f6d
1 changed files with 12 additions and 9 deletions
|
|
@ -1798,15 +1798,18 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
else {
|
||||
hash = Cache.get(name + '-hash');
|
||||
|
||||
DOM.loadCurrentHash(function(pHash) {
|
||||
var data,
|
||||
isContain = Util.isContainStr(hash, 'error');
|
||||
|
||||
if (!isContain && hash === pHash)
|
||||
data = Cache.get(name + '-data');
|
||||
|
||||
Util.exec(callback, data);
|
||||
});
|
||||
if (!hash)
|
||||
Util.exec(callback);
|
||||
else
|
||||
DOM.loadCurrentHash(function(pHash) {
|
||||
var data,
|
||||
isContain = Util.isContainStr(hash, 'error');
|
||||
|
||||
if (!isContain && hash === pHash)
|
||||
data = Cache.get(name + '-data');
|
||||
|
||||
Util.exec(callback, data);
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue