fix: 移除商品管理页面权限限制
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-04-02 13:08:16 +00:00
parent 46894e04fe
commit 8430fb1886

View File

@@ -165,11 +165,12 @@ export default {
}
},
onLoad(options) {
if (!canManageProduct()) {
uni.showToast({ title: '无权限', icon: 'none' })
uni.navigateBack()
return
}
// 移除权限限制,允许所有用户访问
// if (!canManageProduct()) {
// uni.showToast({ title: '无权限', icon: 'none' })
// uni.navigateBack()
// return
// }
this.loadCategories()
this.loadProducts()
// 如果传入了 productId则打开编辑弹窗