|
@@ -107,7 +107,7 @@ export const usePermissions = () => {
|
|
*/
|
|
*/
|
|
{ name: 'exchange', meta: { canNotLogin: false, canNotDesigner: false } },
|
|
{ name: 'exchange', meta: { canNotLogin: false, canNotDesigner: false } },
|
|
{ name: 'share', meta: { canNotLogin: false, canNotDesigner: false, minLevel: 2 } },
|
|
{ name: 'share', meta: { canNotLogin: false, canNotDesigner: false, minLevel: 2 } },
|
|
- { name: 'scan', meta: { canNotLogin: false, canNotDesigner: false, minLevel: 2 } },
|
|
|
|
|
|
+ { name: 'scan', meta: { canNotLogin: false, canNotDesigner: false } },
|
|
{ name: 'task', meta: { canNotLogin: false, canNotDesigner: false } },
|
|
{ name: 'task', meta: { canNotLogin: false, canNotDesigner: false } },
|
|
{ name: 'download', meta: { canNotLogin: false, canNotDesigner: false } },
|
|
{ name: 'download', meta: { canNotLogin: false, canNotDesigner: false } },
|
|
]
|
|
]
|
|
@@ -119,8 +119,10 @@ export const usePermissions = () => {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!feature.meta.canNotDesigner && !isDesigner.value) {
|
|
if (!feature.meta.canNotDesigner && !isDesigner.value) {
|
|
- uni.showToast({ title: messages.components.toast.pleaseAuthentication, icon: 'none' })
|
|
|
|
- useRouter().push('/pages/mine/authentication/index')
|
|
|
|
|
|
+ uni
|
|
|
|
+ .showToast({ title: messages.components.toast.pleaseAuthentication, icon: 'none' })
|
|
|
|
+ .then()
|
|
|
|
+ useRouter().push('/pages/mine/authentication/index').then()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (feature.meta.minLevel && userInfo.value.level.level < feature.meta.minLevel) {
|
|
if (feature.meta.minLevel && userInfo.value.level.level < feature.meta.minLevel) {
|