We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f70e69 commit 27edfacCopy full SHA for 27edfac
web/src/view/systemTools/autoCodeAdmin/index.vue
@@ -206,6 +206,7 @@ import { useRouter } from "vue-router";
206
import { ElMessage, ElMessageBox } from "element-plus";
207
import { ref } from "vue";
208
import { formatDate } from "@/utils/format";
209
+import { toUpperCase } from "@/utils/stringFun"
210
211
defineOptions({
212
name: "AutoCodeAdmin",
@@ -261,6 +262,9 @@ const closeFunc = () => {
261
262
};
263
264
const runFunc = async () =>{
265
+ // 首字母自动转换为大写
266
+ autoFunc.value.funcName = toUpperCase(autoFunc.value.funcName)
267
+
268
const res = await addFunc(autoFunc.value)
269
if (res.code === 0) {
270
ElMessage.success("增加方法成功");
0 commit comments