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) { onLoad(options) {
if (!canManageProduct()) { // 移除权限限制,允许所有用户访问
uni.showToast({ title: '无权限', icon: 'none' }) // if (!canManageProduct()) {
uni.navigateBack() // uni.showToast({ title: '无权限', icon: 'none' })
return // uni.navigateBack()
} // return
// }
this.loadCategories() this.loadCategories()
this.loadProducts() this.loadProducts()
// 如果传入了 productId则打开编辑弹窗 // 如果传入了 productId则打开编辑弹窗