测试app上传文件
parent
47999fdd88
commit
95a0bbce2f
|
|
@ -80,6 +80,7 @@ export default defineComponent({
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const uploadRefs = shallowRef<InstanceType<typeof ElUpload>>()
|
const uploadRefs = shallowRef<InstanceType<typeof ElUpload>>()
|
||||||
const action = ref(`${config.baseUrl}${config.urlPrefix}/upload/${props.type}`)
|
const action = ref(`${config.baseUrl}${config.urlPrefix}/upload/${props.type}`)
|
||||||
|
// const action = ref(`http://localhost:7890/api/upload/image`)
|
||||||
const headers = computed(() => ({
|
const headers = computed(() => ({
|
||||||
['like-admin']: userStore.token,
|
['like-admin']: userStore.token,
|
||||||
version: config.version
|
version: config.version
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue