修复上传文件请求头参数错误问题

This commit is contained in:
xinjie 2022-12-02 14:40:25 +08:00
parent 0077e75e85
commit 2453b0fc3b
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ export default defineComponent({
const uploadRefs = shallowRef<InstanceType<typeof ElUpload>>()
const action = ref(`${config.baseUrl}${config.urlPrefix}/upload/${props.type}`)
const headers = computed(() => ({
token: userStore.token,
['like-admin']: userStore.token,
version: config.version
}))
const visible = ref(false)