save code

This commit is contained in:
xsl
2026-03-12 19:35:01 +08:00
parent 2fe10cd183
commit a7ea59d201
2 changed files with 16 additions and 1 deletions
+4
View File
@@ -9,6 +9,10 @@
"customPlaygroundType" : "local",
"playground" : "custom",
"type" : "uni-app:app-ios"
},
{
"playground" : "custom",
"type" : "uni-app:app-android"
}
]
}
+12 -1
View File
@@ -69,7 +69,18 @@
}
},
onLoad() {
// let permissionNeed = ["android.permission.CAMERA", "android.permission.RECORD_AUDIO",
// "android.permission.WRITE_EXTERNAL_STORAGE"]
// // 请求权限
// UTSAndroid.requestSystemPermission(UTSAndroid.getUniActivity()!, permissionNeed, function (allRight : boolean, _ : string[]) {
// if (allRight) {
// // 权限请求成功
// } else {
// //用户拒绝了部分权限
// }
// }, function (_ : boolean, _ : string[]) {
// //用户拒绝了部分权限
// })
},
methods: {
onError(res : any) {