Skip to content

fix: add funcName is sure UpperChar #1860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions web/src/view/systemTools/autoCodeAdmin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ import { useRouter } from "vue-router";
import { ElMessage, ElMessageBox } from "element-plus";
import { ref } from "vue";
import { formatDate } from "@/utils/format";
import { toUpperCase } from "@/utils/stringFun"

defineOptions({
name: "AutoCodeAdmin",
Expand Down Expand Up @@ -261,6 +262,9 @@ const closeFunc = () => {
};

const runFunc = async () =>{
// 首字母自动转换为大写
autoFunc.value.funcName = toUpperCase(autoFunc.value.funcName)

const res = await addFunc(autoFunc.value)
if (res.code === 0) {
ElMessage.success("增加方法成功");
Expand Down