filecache
This commit is contained in:
+2
-1
@@ -34,10 +34,11 @@ export const getEl = (el) => {
|
||||
};
|
||||
|
||||
export const getDbDir = () => {
|
||||
const userID = uni.getStorageSync("IMUserID");
|
||||
return new Promise((resolve, reject) => {
|
||||
plus.io.requestFileSystem(plus.io.PRIVATE_DOC, (fs) => {
|
||||
fs.root.getDirectory(
|
||||
"user", {
|
||||
userID ? userID : "user", {
|
||||
create: true,
|
||||
},
|
||||
(entry) => {
|
||||
|
||||
Reference in New Issue
Block a user