From 477a26013940f0ee45c0d170e22b5dc671eed930 Mon Sep 17 00:00:00 2001 From: lill <307295618@qq.com> Date: Wed, 27 Aug 2025 05:54:37 +0000 Subject: [PATCH] =?UTF-8?q?update=20docs/UniMPDocs/API/harmony.md.=20getUn?= =?UTF-8?q?iMPRunPath=20=E6=8A=A5=E9=94=99=E4=BF=A1=E6=81=AF=E5=A6=82?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E5=8F=AA=E6=9C=89=E5=86=99=E4=BA=86=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E6=97=A0=E8=AE=BA=E6=98=AF=E5=90=A6=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E9=83=BD=E4=BC=9A=E6=8A=A5=E9=94=99=EF=BC=8C=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E6=89=93=E5=BC=80=E7=A9=BA=E7=99=BD=20[defau?= =?UTF-8?q?lt]=20[CallForNapi:3533]=20occur=20exception=20need=20return=20?= =?UTF-8?q?[(native=5Fapi.cpp:1234)(napi=5Fcall=5Ffunction)]=20pending=20e?= =?UTF-8?q?xception=20when=20js=20function=20called,=20print=20exception?= =?UTF-8?q?=20info:=20TypeError:=20cannot=20Callspread=20=20at=20anonymous?= =?UTF-8?q?=20(oh=5Fmodules/.ohpm/@dcloudio+uni-app-runtime@4.76.202508210?= =?UTF-8?q?1/oh=5Fmodules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sd?= =?UTF-8?q?k/sdk.js:1046:1)=20=20=20at=20anonymous=20(oh=5Fmodules/.ohpm/@?= =?UTF-8?q?dcloudio+uni-app-runtime@4.76.2025082101/oh=5Fmodules/@dcloudio?= =?UTF-8?q?/uni-app-runtime/src/main/ets/uni-mp-sdk/sdk.js:958:1)=20=20=20?= =?UTF-8?q?=20at=20run=20(oh=5Fmodules/.ohpm/@dcloudio+uni-app-runtime@4.7?= =?UTF-8?q?6.2025082101/oh=5Fmodules/@dcloudio/uni-app-runtime/src/main/et?= =?UTF-8?q?s/uni-mp-sdk/sdk.js:1165:1)=20napi=5Fcall=5Ffunction=20failed?= =?UTF-8?q?=20TypeError:=20cannot=20Callspread?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lill <307295618@qq.com> --- docs/UniMPDocs/API/harmony.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/UniMPDocs/API/harmony.md b/docs/UniMPDocs/API/harmony.md index 1d725946..1f36d5aa 100644 --- a/docs/UniMPDocs/API/harmony.md +++ b/docs/UniMPDocs/API/harmony.md @@ -124,4 +124,8 @@ on(event: 'close' | 'show' | 'hide', callback: () => void): void ```ts off(name: string, callback: Function): void -``` \ No newline at end of file +``` + + + //获取运行目录 只有写了方法,无论是否调用,都会报错 + let path: string = getUniMPRunPath(uniappId) \ No newline at end of file -- Gitee