소스 검색

Fix 修复代码生成下载

Yue 1 개월 전
부모
커밋
93ae860550
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      UI/VB.VUE/src/api/tool/_gen.ts
  2. 1 1
      UI/VB.VUE/src/views/tool/gen/index.vue

+ 2 - 2
UI/VB.VUE/src/api/tool/_gen.ts

@@ -62,8 +62,8 @@ class genApi {
 		})
 	}
 
-	downloadCode = (tableId: string | number) => {
-		return Rs.get("/tool/gen/download/" + tableId)
+	downloadCode = (tableId: string | number, name: string) => {
+		return Rs.downloadZip("/tool/gen/download/" + tableId, name)
 	}
 
 	// 生成菜单

+ 1 - 1
UI/VB.VUE/src/views/tool/gen/index.vue

@@ -183,7 +183,7 @@ function handleGenCode(row: any) {
 				}
 			})
 		} else {
-			apis.tool.genApi.downloadCode(row.tableId).then(() => {
+			apis.tool.genApi.downloadCode(row.tableId, "vberGenCode.zip").then(() => {
 				message.msgSuccess("下载成功")
 			})
 		}