From d21cd896c9845daddfe161311f4daba230c0bae2 Mon Sep 17 00:00:00 2001 From: wangzhongjie Date: Mon, 23 Jun 2025 11:14:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84Date=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E5=87=BD=E6=95=B0=20=E5=AF=B9=E6=AF=AB=E7=A7=92=E7=9A=84?= =?UTF-8?q?=E6=94=AF=E6=8C=81,=E4=BB=A5=E5=8F=8A=E5=AE=8C=E5=96=84judge?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=87=BD=E6=95=B0=E7=9A=84=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Index.ets | 6 ------ entry/src/main/ets/pages/Judge/utils.ets | 12 ------------ 2 files changed, 18 deletions(-) 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() {