Skip to content

Commit 27edfac

Browse files
authored
fix: add funcName is sure UpperChar (#1860)
* fix: add funcName is sure UpperChar
1 parent 7f70e69 commit 27edfac

File tree

1 file changed

+4
-0
lines changed
  • web/src/view/systemTools/autoCodeAdmin

1 file changed

+4
-0
lines changed

web/src/view/systemTools/autoCodeAdmin/index.vue

+4
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ import { useRouter } from "vue-router";
206206
import { ElMessage, ElMessageBox } from "element-plus";
207207
import { ref } from "vue";
208208
import { formatDate } from "@/utils/format";
209+
import { toUpperCase } from "@/utils/stringFun"
209210
210211
defineOptions({
211212
name: "AutoCodeAdmin",
@@ -261,6 +262,9 @@ const closeFunc = () => {
261262
};
262263
263264
const runFunc = async () =>{
265+
// 首字母自动转换为大写
266+
autoFunc.value.funcName = toUpperCase(autoFunc.value.funcName)
267+
264268
const res = await addFunc(autoFunc.value)
265269
if (res.code === 0) {
266270
ElMessage.success("增加方法成功");

0 commit comments

Comments
 (0)