Commit b4681db1 by 李伟康

refactor(components): 更新白名单页面逻辑

- 在 HomeFrame 和 boutique/tool 组件中,移除了 OrderManagement 页面的白名单判断
- 此修改确保 OrderManagement 页面现在将受到日常报告和禁止账单检查的拦截
1 parent 7e99eaef
...@@ -401,7 +401,7 @@ export default { ...@@ -401,7 +401,7 @@ export default {
this.checkVersion() this.checkVersion()
}, },
async entranceClick (item) { async entranceClick (item) {
const noInterceptPage = ['DailyReport', 'OrderManagement'] const noInterceptPage = ['DailyReport']
if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport() || await this.inspectionOfProhibitionBill())) return if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport() || await this.inspectionOfProhibitionBill())) return
uni.navigateTo({ uni.navigateTo({
url: `/pages/boutique/tool/index?componentName=${item.name}` url: `/pages/boutique/tool/index?componentName=${item.name}`
......
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
}, },
methods: { methods: {
async entranceClick (item) { async entranceClick (item) {
const noInterceptPage = ['DailyReport', 'OrderManagement'] const noInterceptPage = ['DailyReport']
if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return
// 保存当前选择的组件信息,但不立即切换 // 保存当前选择的组件信息,但不立即切换
const selectedItem = item const selectedItem = item
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!