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"
})