From 4af6b2bfb17843073c7d4ec431ef0ee6a01b7fb6 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 8 Jun 2025 11:50:00 +0800 Subject: [PATCH] =?UTF-8?q?review=EF=BC=9A=E3=80=90infra=20=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E8=AE=BE=E6=96=BD=E3=80=91=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E7=9A=84=E6=89=B9=E9=87=8F=E6=93=8D=E4=BD=9C=E5=BB=BA?= =?UTF-8?q?=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/infra/enums/codegen/CodegenFrontTypeEnum.java | 3 +-- .../codegen/vue3/views/components/form_sub_erp.vue.vm | 2 +- .../system/controller/admin/oauth2/OAuth2OpenController.java | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/enums/codegen/CodegenFrontTypeEnum.java b/yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/enums/codegen/CodegenFrontTypeEnum.java index 055ca157ff..0ff9e56a9c 100644 --- a/yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/enums/codegen/CodegenFrontTypeEnum.java +++ b/yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/enums/codegen/CodegenFrontTypeEnum.java @@ -19,11 +19,10 @@ public enum CodegenFrontTypeEnum { VUE3_VBEN2_ANTD_SCHEMA(30), // Vue3 VBEN2 + ANTD + Schema 模版 VUE3_VBEN5_ANTD_SCHEMA(40), // Vue3 VBEN5 + ANTD + schema 模版 - VUE3_VBEN5_ANTD_GENERAL(41), // Vue3 VBEN5 + ANTD 标准模版 + // TODO @puhui999::50、51 会好点; VUE3_VBEN5_EP_SCHEMA(42), // Vue3 VBEN5 + EP + schema 模版 - VUE3_VBEN5_EP_GENERAL(43), // Vue3 VBEN5 + EP 标准模版 ; diff --git a/yudao-module-infra/src/main/resources/codegen/vue3/views/components/form_sub_erp.vue.vm b/yudao-module-infra/src/main/resources/codegen/vue3/views/components/form_sub_erp.vue.vm index a8d5a35191..8277e9b762 100644 --- a/yudao-module-infra/src/main/resources/codegen/vue3/views/components/form_sub_erp.vue.vm +++ b/yudao-module-infra/src/main/resources/codegen/vue3/views/components/form_sub_erp.vue.vm @@ -170,7 +170,7 @@ const submitForm = async () => { // 提交请求 formLoading.value = true try { - const data = formData.value as unknown as ${subSimpleClassName} + const data = formData.value as unknown as ${subSimpleClassName} if (formType.value === 'create') { await ${simpleClassName}Api.create${subSimpleClassName}(data) message.success(t('common.createSuccess')) diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/OAuth2OpenController.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/OAuth2OpenController.java index e002e63a82..d06523e9c0 100644 --- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/OAuth2OpenController.java +++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/OAuth2OpenController.java @@ -120,6 +120,7 @@ public class OAuth2OpenController { // 2. 根据授权模式,获取访问令牌 OAuth2AccessTokenDO accessTokenDO = switch (grantTypeEnum) { + // TODO @xingyu:这里改了,可能会影响 jdk8 版本哈; case AUTHORIZATION_CODE -> oauth2GrantService.grantAuthorizationCodeForAccessToken(client.getClientId(), code, redirectUri, state); case PASSWORD -> oauth2GrantService.grantPassword(username, password, client.getClientId(), scopes);