diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 26b3c37..72c9ef5 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -18,7 +18,6 @@ import BottomMessageComponent from './Index/BottomMessage'; import LoadingComponent from './Index/Loading'; import Prompt from '@system.prompt'; import { DifferentialAndSignal } from '../utils/business/DifferentialAndSignalWorker'; -import dayTs from '../utils/Date'; @Entry @@ -61,11 +60,6 @@ struct Index { } async aboutToAppear() { - console.log("首页 aboutToAppear") - const date = new Date() - const getMilliseconds = date.getMilliseconds() - const timeStr = dayTs().format('YYYYMMDDHHmmss.SS') - console.log(getMilliseconds.toString(), "时间测试", timeStr) await UseAuth(this.context) this.ratio = AppStorage.get('baseInfo')?.ratio || 1.4 this.angle = 0 diff --git a/entry/src/main/ets/pages/Judge/utils.ets b/entry/src/main/ets/pages/Judge/utils.ets index e634875..85aa7e9 100644 --- a/entry/src/main/ets/pages/Judge/utils.ets +++ b/entry/src/main/ets/pages/Judge/utils.ets @@ -682,18 +682,6 @@ export const senorToWXDataStr = async (tempData: PLCType) => { // console.log('wuXiData',wuXiData.join(',')); } -export const getTimeStr = async () => { - const date = await systemTime.getDate() - const timeStr = ''; - const Y = date.getFullYear(); - const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1); - const D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()); - const h = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()); - const m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes()); - const s = (date.getSeconds() < 10 ? '0' + (date.getSeconds()) : date.getSeconds()); - const ss = (date.getMilliseconds() + '').slice(0, 2); - return timeStr + Y + M + D + h + m + s + '.' + ss -} //蓝灯 export function sendBlue() {