From f2e6b8f6f8be17f24ccb311e071b103745d6bf43 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Wed, 24 Sep 2025 14:54:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor(open-dev-tools):=20=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=B9=B3=E5=8F=B0=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除对已废弃的'mp'平台的支持,仅保留'mp-weixin'和'mp-alipay'的判断 --- scripts/open-dev-tools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/open-dev-tools.js b/scripts/open-dev-tools.js index 9ad428a..43b2bd4 100644 --- a/scripts/open-dev-tools.js +++ b/scripts/open-dev-tools.js @@ -8,9 +8,9 @@ import process from 'node:process' */ function _openDevTools() { const platform = process.platform // darwin, win32, linux - const { UNI_PLATFORM } = process.env // mp, mp-weixin, mp-alipay + const { UNI_PLATFORM } = process.env // mp-weixin, mp-alipay - const uniPlatformText = UNI_PLATFORM === 'mp' || UNI_PLATFORM === 'mp-weixin' ? '微信小程序' : UNI_PLATFORM === 'mp-alipay' ? '支付宝小程序' : '小程序' + const uniPlatformText = UNI_PLATFORM === 'mp-weixin' ? '微信小程序' : UNI_PLATFORM === 'mp-alipay' ? '支付宝小程序' : '小程序' // 项目路径(构建输出目录) const projectPath = path.resolve(process.cwd(), `dist/dev/${UNI_PLATFORM}`)