diff --git a/README-zh.md b/README-zh.md index a530058454ace68c3775af5963e3ef96267465ee..ae5a47c69ac2fe66a790e60bb806b07e197ad7b8 100644 --- a/README-zh.md +++ b/README-zh.md @@ -30,7 +30,8 @@ #### 指令 1. 构建和配置nginx+uwsgi服务 - 2. 启动uwsgi : uwsgi --ini uwsgi.ini + 2. sudo mkdir /var/log/kytuning/ + 3. 启动uwsgi : uwsgi --ini uwsgi.ini 3. 重启nginx : systemctl 重启nginx.service #### Contribution diff --git a/templates/front-project/src/views/EnvTable.vue b/templates/front-project/src/views/EnvTable.vue index c1e477b474c32d127b9b0755ed52a5567970c73f..cad1cfcfb501c5c7d2b08db59a31894b1900d599 100644 --- a/templates/front-project/src/views/EnvTable.vue +++ b/templates/front-project/src/views/EnvTable.vue @@ -2,8 +2,27 @@
@@ -31,7 +50,18 @@ export default { }) }, methods: { + processConfigString(inputString) { + // 使用正则表达式将 = 左右的空格删除 + let processedString = inputString.replace(/\s*=\s*/g, "="); + // 将处理后的字符串按空格分割成数组 + let lines = processedString.split(/\s+/); + + // 将数组中的元素用换行符连接成新的字符串 + let result = lines.join("
"); + // console.log(result); + return result; + }, // 单元格的处理方法 当前行row、当前列column、当前行号rowIndex、当前列号columnIndex objectSpanMethod({rowIndex, columnIndex}) { //columnIndex 表示需要合并的列,多列时用 || 隔开