Explorar o código

Fix 修复代码生成下载

Yue hai 1 mes
pai
achega
93ae860550
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  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("下载成功")
 			})
 		}