|
@@ -1,6 +1,7 @@
|
|
|
import { useUserStore } from '../store'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
-import {computed} from "vue";
|
|
|
+import { computed } from 'vue'
|
|
|
+import { path } from 'node:path'
|
|
|
export const usePermissions = () => {
|
|
|
const userStore = useUserStore()
|
|
|
const { isLogined, isDesigner, userInfo } = storeToRefs(userStore)
|
|
@@ -50,6 +51,10 @@ export const usePermissions = () => {
|
|
|
path: '/pages/mine/invite/index',
|
|
|
meta: { canNotLogin: false, canNotDesigner: false, toLogin: true },
|
|
|
},
|
|
|
+ {
|
|
|
+ path: '/pages/mall/confirm-order/index',
|
|
|
+ meta: { canNotLogin: false, canNotDesigner: true, toLogin: true },
|
|
|
+ },
|
|
|
]
|
|
|
const features = computed(() => ({
|
|
|
/**
|
|
@@ -59,6 +64,13 @@ export const usePermissions = () => {
|
|
|
toDesignerHomePage: isLogined.value,
|
|
|
checkInAtStoreTask: isDesigner.value,
|
|
|
shareMoment: isLogined.value && isDesigner.value && userInfo.value.level.level > 1,
|
|
|
+ /**
|
|
|
+ * 微信代运营兑换
|
|
|
+ */
|
|
|
+ // wechatAgentExchange: isLogined.value,
|
|
|
+ /**
|
|
|
+ * 案例拍摄兑换
|
|
|
+ */
|
|
|
}))
|
|
|
return { isLogined, isDesigner, routes, features }
|
|
|
}
|