update about api
This commit is contained in:
@@ -89,9 +89,35 @@ export default {
|
||||
},
|
||||
// 跳转发布页面
|
||||
navto(url) {
|
||||
this.$u.route({
|
||||
url: `/pages/${url}`
|
||||
});
|
||||
// 判断直播权限
|
||||
if(url=="release/tosign"){
|
||||
this.$u.api.canlive({}).then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
if(res.data.live_stataes==0){
|
||||
this.$u.route({
|
||||
url: `/pages/${url}`
|
||||
});
|
||||
}else{
|
||||
this.$refs.uToast.show({
|
||||
title: "当前用户没有直播权限",
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
this.$u.route({
|
||||
url: `/pages/${url}`
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user