提交 73cc5f28 authored 作者: 邓文彬's avatar 邓文彬

fix(数据读取):创建默认文件夹

上级 e5e17bde
......@@ -138,6 +138,10 @@ export default {
.catch((error) => {
console.log("---目录创建失败", error);
});
checkAndCreateDirectory(`${SYNCHRONIZE_DATA_PAD}/reportData`)
checkAndCreateDirectory(`${SYNCHRONIZE_DATA_PAD}/reportSearch`)
},
// 比较代码中的用户列表 和 ipad中存储用户的 差异
......
{
"name" : "杭州内网机房巡检",
"name" : "杭州内网监管在线",
"appid" : "__UNI__7C6382E",
"description" : "",
"versionName" : "1.0.0",
......@@ -56,33 +56,33 @@
},
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/logo.png",
"xhdpi" : "unpackage/res/icons/logo.png",
"xxhdpi" : "unpackage/res/icons/logo.png",
"xxxhdpi" : "unpackage/res/icons/logo.png"
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/logo.png",
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/logo.png",
"app@2x" : "unpackage/res/icons/logo.png",
"notification" : "unpackage/res/icons/logo.png",
"notification@2x" : "unpackage/res/icons/logo.png",
"proapp@2x" : "unpackage/res/icons/logo.png",
"settings" : "unpackage/res/icons/logo.png",
"settings@2x" : "unpackage/res/icons/logo.png",
"spotlight" : "unpackage/res/icons/logo.png",
"spotlight@2x" : "unpackage/res/icons/logo.png"
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"iphone" : {
"app@2x" : "unpackage/res/icons/logo.png",
"app@3x" : "unpackage/res/icons/logo.png",
"notification@2x" : "unpackage/res/icons/logo.png",
"notification@3x" : "unpackage/res/icons/logo.png",
"settings@2x" : "unpackage/res/icons/logo.png",
"settings@3x" : "unpackage/res/icons/logo.png",
"spotlight@2x" : "unpackage/res/icons/logo.png",
"spotlight@3x" : "unpackage/res/icons/logo.png"
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
}
}
}
......
......@@ -106,16 +106,15 @@ export const getDarft = () => {
// 获取所有月报数据
export const getReportList = () => {
return new Promise((resolve, reject) => {
if(store.state.reportList.length){
resolve(store.state.reportList)
return;
}
// if(store.state.reportList.length){
// resolve(store.state.reportList)
// return;
// }
readReportData()
.then((res) => {
const temp = res.map(item => JSON.parse(item))
store.commit("SET_REPORT_LIST", temp);
// store.commit("SET_REPORT_LIST", temp);
resolve(temp)
})
.catch((error) => {
......@@ -130,14 +129,13 @@ export const getReportList = () => {
export const getReportSearch = () => {
return new Promise((resolve, reject) => {
if(store.state.reportSearch.length){
resolve(store.state.reportSearch)
return;
}
// if(store.state.reportSearch.length){
// resolve(store.state.reportSearch)
// return;
// }
readReportSEarchData()
.then((res) => {
store.commit("SET_REPORT_SEARCH", JSON.parse(res[0]));
// store.commit("SET_REPORT_SEARCH", JSON.parse(res[0]));
resolve(JSON.parse(res[0]))
})
.catch((error) => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论