提交 5096844c 编写于 作者: W wangkai

change1_16

Signed-off-by: Nwangkai <wangkai424@huawei.com>
上级 d285e314
......@@ -72,13 +72,13 @@
let context = null;
function grantPermission() {
class EntryAbility extends UIAbility {
onWindowStageCreate(windowStage) {
let context = this.context;
}
}
function grantPermission() {
let permissions = ['ohos.permission.DISTRIBUTED_DATASYNC'];
context.requestPermissionsFromUser(permissions).then((data) => {
console.log('success: ${data}');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册