Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
monthReport_smzx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
邓文彬
monthReport_smzx
Commits
d1b86b97
提交
d1b86b97
authored
9月 13, 2024
作者:
邓文彬
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(Pad): 日志数据清洗
上级
c58687b4
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
11 行删除
+11
-11
index.js
store/index.js
+1
-1
IoReadingAndWriting.js
utils/IoReadingAndWriting.js
+3
-3
systemCofig.js
utils/systemCofig.js
+7
-7
没有找到文件。
store/index.js
浏览文件 @
d1b86b97
...
...
@@ -76,7 +76,7 @@ const store = new Vuex.Store({
state
.
all_data
=
payload
;
},
SET_LOG_LIST
(
state
,
payload
)
{
console
.
log
(
"保存 日志文件----"
,
payload
);
//
console.log("保存 日志文件----", payload);
// 保存 日志文件
state
.
log_list
=
payload
;
},
...
...
utils/IoReadingAndWriting.js
浏览文件 @
d1b86b97
...
...
@@ -80,11 +80,11 @@ export const readLogData = () => {
readFilesInDirectory
(
directoryPath
)
.
then
((
res
)
=>
{
const
temp
=
res
.
map
((
element
)
=>
{
return
JSON
.
parse
(
Base64
.
decode
(
element
));
return
JSON
.
parse
(
Base64
.
decode
(
element
));
});
// console.log("读取志文件数据--", temp);
resolve
(
temp
);
resolve
(
lodash
.
flattenDeep
(
temp
)
);
})
.
catch
((
error
)
=>
reject
(
error
));
});
...
...
@@ -127,7 +127,7 @@ export const readDarfData = () => {
if
(
!
res
.
length
)
{
resolve
({});
}
else
{
console
.
log
(
"读取草稿文件--"
,
JSON
.
parse
(
Base64
.
decode
(
res
)));
//
console.log("读取草稿文件--", JSON.parse(Base64.decode(res)));
resolve
(
JSON
.
parse
(
Base64
.
decode
(
res
)));
}
})
...
...
utils/systemCofig.js
浏览文件 @
d1b86b97
...
...
@@ -315,13 +315,13 @@ export const readFilesInDirectory = async (directoryPath) => {
}
}
Promise
.
all
(
promiseArr
)
.
then
((
res
)
=>
{
resolve
(
res
);
})
.
catch
((
error
)
=>
{
reject
(
"读取文件内容失败:"
+
error
.
message
);
});
Promise
.
all
(
promiseArr
)
.
then
((
res
)
=>
{
resolve
(
res
);
})
.
catch
((
error
)
=>
{
reject
(
"读取文件内容失败:"
+
error
.
message
);
});
},
function
(
error
)
{
reject
(
"读取目录条目失败:"
+
error
.
message
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论