跳转系统授权管理页
注:App平台其实早期版本也可以使用
| 名称 | 类型 | 必填 | 兼容性 | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| options | OpenAppAuthorizeSettingOptions | 是 | |||||||||||||||||||||||||
| |||||||||||||||||||||||||||
| 名称 | 类型 | 必备 | 兼容性 | 描述 |
|---|---|---|---|---|
| errMsg | string | 是 | 错误信息 |
| 名称 | 类型 | 必备 | 兼容性 | 描述 |
|---|---|---|---|---|
| errMsg | string | 是 | 错误信息 |
| 名称 | 类型 | 必备 | 兼容性 | 描述 |
|---|---|---|---|---|
| errMsg | string | 是 | 错误信息 |
示例为hello uni-app x alpha分支,与最新HBuilderX Alpha版同步。与最新正式版同步的master分支示例另见
该 API 不支持 Web,请运行 hello uni-app x 到 App 平台体验
<template>
<button type="primary" style="margin: 20px;" @tap="go">跳转系统授权管理页</button>
</template>
<script setup lang="ts">
const go = () => {
uni.openAppAuthorizeSetting({
success (res) {
console.log(res)
}
})
}
defineExpose({
go
})
</script>
<style>
</style>
示例为hello uni-app x alpha分支,与最新HBuilderX Alpha版同步。与最新正式版同步的master分支示例另见
该 API 不支持 Web,请运行 hello uni-app x 到 App 平台体验
<template>
<button type="primary" style="margin: 20px;" @tap="go">跳转系统授权管理页</button>
</template>
<script setup lang="ts">
const go = () => {
uni.openAppAuthorizeSetting({
success (res) {
console.log(res)
}
})
}
defineExpose({
go
})
</script>
<style>
</style>
| 名称 | 类型 | 必备 | 描述 |
|---|---|---|---|
| errMsg | string | 是 | 错误信息 |