mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(client) change directory with enabled dirStorage (#255)
This commit is contained in:
parent
e38766f0fa
commit
43ccc76960
1 changed files with 3 additions and 2 deletions
|
|
@ -340,7 +340,7 @@ function CloudCmdProto(DOM) {
|
|||
* @param callback
|
||||
*
|
||||
*/
|
||||
function ajaxLoad(path, options, panel, callback) {
|
||||
async function ajaxLoad(path, options, panel, callback) {
|
||||
const {Dialog, RESTful} = DOM;
|
||||
|
||||
const create = async (error, json) => {
|
||||
|
|
@ -392,7 +392,8 @@ function CloudCmdProto(DOM) {
|
|||
if (!CloudCmd.config('dirStorage'))
|
||||
return create();
|
||||
|
||||
Storage.get(path, create);
|
||||
const data = await Storage.get(path);
|
||||
create(null, data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue