提交 68f53bea 编写于 作者: P PaDoBoo

fix bugs

Signed-off-by: NPaDoBoo <xuejianwu@huawei.com>
上级 06dc5cd4
...@@ -52,7 +52,7 @@ getStorageSync(path: string): Storage ...@@ -52,7 +52,7 @@ getStorageSync(path: string): Storage
console.error('getFilesDir failed. err: ' + JSON.stringify(err)); console.error('getFilesDir failed. err: ' + JSON.stringify(err));
return; return;
} }
console.info('getFilesDir successful. path:' + JSON.stringify(data)); console.info('getFilesDir successful. path:' + JSON.stringify(path));
let storage = dataStorage.getStorageSync(path + '/mystore') let storage = dataStorage.getStorageSync(path + '/mystore')
storage.putSync('startup', 'auto') storage.putSync('startup', 'auto')
storage.flushSync() storage.flushSync()
...@@ -85,7 +85,7 @@ getStorage(path: string, callback: AsyncCallback&lt;Storage&gt;): void ...@@ -85,7 +85,7 @@ getStorage(path: string, callback: AsyncCallback&lt;Storage&gt;): void
console.error('getFilesDir failed. err: ' + JSON.stringify(err)); console.error('getFilesDir failed. err: ' + JSON.stringify(err));
return; return;
} }
console.info('getFilesDir successful. path:' + JSON.stringify(data)); console.info('getFilesDir successful. path:' + JSON.stringify(path));
dataStorage.getStorage(path + '/mystore', function (err, storage) { dataStorage.getStorage(path + '/mystore', function (err, storage) {
if (err) { if (err) {
console.info("Get the storage failed, path: " + path + '/mystore') console.info("Get the storage failed, path: " + path + '/mystore')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册