From 2c92eafdc49ca5f24befbeb68b97033799182280 Mon Sep 17 00:00:00 2001 From: lloyd <754415+llince@user.noreply.gitee.com> Date: Sat, 21 Sep 2024 16:32:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90Web=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=95=BF=E6=8C=89=E8=8F=9C=E5=8D=95=E3=80=91=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=9D=83=E9=99=90=E4=BD=BF=E7=94=A8=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/module.json5 | 1 + entry/src/main/resources/base/element/string.json | 4 ++++ entry/src/main/resources/en_US/element/string.json | 4 ++++ entry/src/main/resources/zh_CN/element/string.json | 4 ++++ 4 files changed, 13 insertions(+) diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index 7875383..a13d9e6 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -35,6 +35,7 @@ "requestPermissions": [ { "name": "ohos.permission.INTERNET", + "reason": "$string:reason_internet", "usedScene": { "abilities": [ "EntryAbility" diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index 6bce439..4bcec34 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -51,6 +51,10 @@ { "name": "web_press_copy_link", "value": "复制链接" + }, + { + "name": "reason_internet", + "value": "Allow the app to use the Internet network in Web component scenarios" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index a174106..d5717c9 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -51,6 +51,10 @@ { "name": "web_press_copy_link", "value": "Copy Link" + }, + { + "name": "reason_internet", + "value": "Allow the app to use the Internet network in Web component scenarios" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json index c71ed02..658cd47 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -51,6 +51,10 @@ { "name": "web_press_copy_link", "value": "复制链接" + }, + { + "name": "reason_internet", + "value": "允许应用在Web组件场景中使用Internet网络" } ] } \ No newline at end of file -- Gitee