chore: 需要加上clientId

This commit is contained in:
dap 2024-12-17 08:09:47 +08:00
parent e52ec4f9b9
commit 395b45fa48

View File

@ -1,6 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useAppConfig } from '@vben/hooks';
import { stringify } from '@vben/request'; import { stringify } from '@vben/request';
import { useAccessStore } from '@vben/stores'; import { useAccessStore } from '@vben/stores';
@ -10,10 +11,13 @@ const route = useRoute();
const definitionId = route.query.definitionId as string; const definitionId = route.query.definitionId as string;
const disabled = route.query.disabled === 'true'; const disabled = route.query.disabled === 'true';
const { clientId } = useAppConfig(import.meta.env, import.meta.env.PROD);
const accessStore = useAccessStore(); const accessStore = useAccessStore();
const params = { const params = {
Authorization: `Bearer ${accessStore.accessToken}`, Authorization: `Bearer ${accessStore.accessToken}`,
id: definitionId, id: definitionId,
clientId,
disabled, disabled,
}; };