游客登陆 权限拦截
This commit is contained in:
@@ -172,6 +172,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import permission from "@/js_sdk/wa-permission/permission.js"
|
||||
import musicPlay from '@/components/music.vue'
|
||||
import $http from '@/config/requestConfig.js';
|
||||
var clear;
|
||||
@@ -530,7 +531,11 @@
|
||||
},
|
||||
|
||||
// 头像
|
||||
choseAvatar(e) {
|
||||
async choseAvatar(e) {
|
||||
var result = await permission.premissionCheck("CAMERA_EXTERNAL_STORAGE")
|
||||
if (result != 1) {
|
||||
return false
|
||||
}
|
||||
let that = this
|
||||
if (that.fileAvatar.length == 0) {
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user