ios日期不显示 周计划审核不显示主题 直接跳转到课程树折叠

This commit is contained in:
zhanglipeng
2021-09-04 22:05:25 +08:00
parent f88a929c20
commit 7d44e1650d
3 changed files with 18 additions and 11 deletions

View File

@ -18,7 +18,7 @@ export function parseTime(time, pattern) {
if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
time = parseInt(time)
} else if (typeof time === 'string') {
time = time.replace(new RegExp(/-/gm), '/');
time = time.replace(new RegExp(/-/gm), '/').replace('T', ' ').replace(new RegExp(/\.[\d]{3}/gm),'');
}
if ((typeof time === 'number') && (time.toString().length === 10)) {
time = time * 1000

View File

@ -19,7 +19,7 @@
:expand-on-click-node="true"
:filter-node-method="filterNode"
ref="tree"
default-expand-all
:default-expand-all="false"
@node-click="handleNodeClick"
/>
</div>