Explorar o código

我的资源调试上传接口

tanshanming hai 8 meses
pai
achega
f542d76447

+ 0 - 2
src/views/myResource/common/FileTable.vue

@@ -380,8 +380,6 @@
 
 
 	.file-table-wrapper {
 	.file-table-wrapper {
 		margin-top: 2px;
 		margin-top: 2px;
-		border: 1px solid red;
-		height: 80vh;
 		.file-type-0 {
 		.file-type-0 {
 			height: calc(100vh - 206px) !important;
 			height: calc(100vh - 206px) !important;
 			:deep(.ant-table-body) {
 			:deep(.ant-table-body) {

+ 5 - 3
src/views/myResource/file/box/uploadFile/Box.vue

@@ -81,7 +81,9 @@
 	import { message } from 'ant-design-vue'
 	import { message } from 'ant-design-vue'
 	import { useMyResourceStore } from '@/store/myResource'
 	import { useMyResourceStore } from '@/store/myResource'
 	import SparkMD5 from 'spark-md5'
 	import SparkMD5 from 'spark-md5'
-	import config from '@/config/reSource'
+	import sysConfig from '@/config/index'
+	import rsConfig from '@/config/reSource'
+	import tool from '@/utils/tool'
 	import {
 	import {
 		UploadOutlined,
 		UploadOutlined,
 		DeleteOutlined,
 		DeleteOutlined,
@@ -128,7 +130,7 @@
 	})
 	})
 
 
 	const options = ref({
 	const options = ref({
-		target: `${config.baseContext}/filetransfer/uploadfile`,
+		target: `${sysConfig.API_URL}${rsConfig.baseContext}/filetransfer/uploadfile`,
 		chunkSize: 1024 * 1024,
 		chunkSize: 1024 * 1024,
 		fileParameterName: 'file',
 		fileParameterName: 'file',
 		maxChunkRetries: 3,
 		maxChunkRetries: 3,
@@ -147,7 +149,7 @@
 			}
 			}
 		},
 		},
 		headers: {
 		headers: {
-			// token: getCookies(getConfig().tokenKeyName)
+			token: tool.data.get('TOKEN')
 		},
 		},
 		query: () => {}
 		query: () => {}
 	})
 	})

+ 1 - 0
src/views/myResource/resourceLibrary/file/FileList.vue

@@ -281,6 +281,7 @@
 			pageCount: pageData.pageCount
 			pageCount: pageData.pageCount
 		}
 		}
 		getFileListByPath(data).then((res) => {
 		getFileListByPath(data).then((res) => {
+			console.log('res---', res)
 			if (res.success) {
 			if (res.success) {
 				fileList.value = res.dataList
 				fileList.value = res.dataList
 				pageData.total = Number(res.total)
 				pageData.total = Number(res.total)