|
@@ -27,7 +27,9 @@ import { storeToRefs } from 'pinia'
|
|
|
import { requestToast } from '../../../../core/utils/common'
|
|
|
import type { ComponentExposed } from 'vue-component-type-helpers'
|
|
|
import ButtonEvo from '@/components/button-evo.vue'
|
|
|
+import { usePermissions } from '../../../../composables/permissions'
|
|
|
|
|
|
+const { clickByPermission } = usePermissions()
|
|
|
const pageHelperRef = ref<ComponentExposed<typeof PageHelper>>()
|
|
|
const userStore = useUserStore()
|
|
|
const router = useRouter()
|
|
@@ -210,7 +212,7 @@ const handlePlaceOrder = async () => {
|
|
|
</div>
|
|
|
<div class="text-black text-base font-normal font-['PingFang_SC'] leading-5">积分</div>
|
|
|
</div>
|
|
|
- <div class="" @click="handlePlaceOrder">
|
|
|
+ <div class="" @click="clickByPermission('mallExchange', () => handlePlaceOrder)">
|
|
|
<ButtonEvo>
|
|
|
<div
|
|
|
class="w-[65px] h-[22px] text-white text-base font-normal font-['PingFang_SC'] leading-tight"
|