Răsfoiți Sursa

最新测试

于添 6 luni în urmă
părinte
comite
a4b618d89f
3 a modificat fișierele cu 9 adăugiri și 3 ștergeri
  1. 3 2
      .env.development
  2. 5 0
      src/libs/globalFunction/file.js
  3. 1 1
      vite.config.js

+ 3 - 2
.env.development

@@ -5,11 +5,12 @@ NODE_ENV = development
 VITE_TITLE = 飞行学院
 
 # 接口地址
-VITE_API_BASEURL = http://192.168.31.14:19004
+VITE_API_BASEURL = http://192.168.31.14:9003
 #VITE_API_BASEURL = http://192.168.31.80:19003
 #VITE_API_BASEURL = http://192.168.1.235:9003
 #VITE_API_BASEURL = http://192.168.1.245:9003
-VITE_FILEURL = http://192.168.1.245:10005/education/
+#VITE_FILEURL = http://192.168.1.245:10005/education/
+VITE_FILEURL = http://192.168.31.14:10005/education/
 # VITE_API_BASEURL = http://192.168.31.14:9003
 # VITE_API_BASEURL = http://192.168.31.6:9003
 

+ 5 - 0
src/libs/globalFunction/file.js

@@ -84,6 +84,11 @@ const fileFunction = {
 		}&extractionCode=${row.extractionCode == null ? '' : row.extractionCode}&admin=true`
 	},
 	getDownloadFilePath3(row) {
+
+		// console.log("下载地址",`${config.baseContext}/resourceFile/downloadfile?userFileId=${row.fileId}&shareBatchNum=${
+		// 	row.shareBatchNum == null ? '' : row.shareBatchNum
+		// }&extractionCode=${row.extractionCode == null ? '' : row.extractionCode}&admin=true`)
+
 		return `${config.baseContext}/resourceFile/downloadfile?userFileId=${row.fileId}&shareBatchNum=${
 			row.shareBatchNum == null ? '' : row.shareBatchNum
 		}&extractionCode=${row.extractionCode == null ? '' : row.extractionCode}&admin=true`

+ 1 - 1
vite.config.js

@@ -41,7 +41,7 @@ export default defineConfig(({command, mode}) => {
 			port: envConfig.VITE_PORT,
 			proxy: {
 				'/api': {
-					target: 'http://192.168.31.14:19004',
+					target: 'http://192.168.31.14:9003',
 					// target: 'http://192.168.1.235:9003',
 					// target: 'http://192.168.31.15:9003',
 					// target: 'http://192.168.31.15:9003',