Pre Merge pull request !32 from GXRoger/修复未传输clientid问题

This commit is contained in:
GXRoger 2023-07-25 07:54:19 +00:00 committed by Gitee
commit 35bffeaedb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ const props = defineProps({
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const upload = reactive<UploadOption>({
headers: { Authorization: "Bearer " + getToken() },
headers: { Authorization: "Bearer " + getToken(), clientid: import.meta.env.VITE_APP_CLIENT_ID },
url: import.meta.env.VITE_APP_BASE_API + '/resource/oss/upload'
})
const myQuillEditor = ref();

View File

@ -66,7 +66,7 @@ const uploadList = ref<any[]>([]);
const baseUrl = import.meta.env.VITE_APP_BASE_API;
const uploadFileUrl = ref(baseUrl + "/resource/oss/upload"); //
const headers = ref({ Authorization: "Bearer " + getToken() });
const headers = ref({ Authorization: "Bearer " + getToken(), clientid: import.meta.env.VITE_APP_CLIENT_ID });
const fileList = ref<any[]>([]);
const showTip = computed(

View File

@ -70,7 +70,7 @@ const dialogVisible = ref(false);
const baseUrl = import.meta.env.VITE_APP_BASE_API;
const uploadImgUrl = ref(baseUrl + "/resource/oss/upload"); //
const headers = ref({ Authorization: "Bearer " + getToken() });
const headers = ref({ Authorization: "Bearer " + getToken(), clientid: import.meta.env.VITE_APP_CLIENT_ID });
const fileList = ref<any[]>([]);
const showTip = computed(

View File

@ -334,7 +334,7 @@ const upload = reactive<ImportOption>({
//
updateSupport: 0,
//
headers: { Authorization: "Bearer " + getToken() },
headers: { Authorization: "Bearer " + getToken(), clientid: import.meta.env.VITE_APP_CLIENT_ID },
//
url: import.meta.env.VITE_APP_BASE_API + "/system/user/importData"
})