This commit is contained in:
@@ -165,11 +165,7 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
if (!canManageProduct()) {
|
||||
uni.showToast({ title: '无权限', icon: 'none' })
|
||||
uni.navigateBack()
|
||||
return
|
||||
}
|
||||
// 移除权限检查,允许所有用户访问
|
||||
this.loadCategories()
|
||||
this.loadProducts()
|
||||
// 如果传入了 productId,则打开编辑弹窗
|
||||
|
||||
Reference in New Issue
Block a user