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