From 27618d096166b8f760f454324f9eec8f56fe963a Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Mon, 11 Jul 2022 09:51:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 +--- pages/mine/details2.vue | 5 ++--- utils/domain.js | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/App.vue b/App.vue index 8960578..ac4bfb4 100644 --- a/App.vue +++ b/App.vue @@ -83,9 +83,7 @@ // ASCII码转换 大写字母A是65 演讲人是从1开始所以num+64 toCapital(num) { let str = '' - if (num) { - str = String.fromCharCode(num + 64) - } + str = String.fromCharCode(Number(num) + 65) return str }, } diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 80fde1f..1d90fa6 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -37,8 +37,7 @@ v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker"> - - {{ item.speaker | toCapital }} + {{ item.speaker | toCapital }} @@ -972,7 +971,7 @@ // 添加角色 addRole() { this.tablist.push({ - name: String.fromCharCode(this.tablist.length + 64) + name: String.fromCharCode(this.tablist.length + 65) }) }, diff --git a/utils/domain.js b/utils/domain.js index 7072a4e..1603e0c 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -1,10 +1,10 @@ // http.js使用域名 -const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 +// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 // const baseUrl = 'http://192.168.31.148:8080/api';// 泽明 // const baseUrl = 'http://127.0.0.1:8080/autoSR/api'; // 本地 // const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 // const baseUrl = 'http://192.168.31.90:8080/api'; // 盛浩 -// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 +const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 // const baseUrl = 'https://hfju.com/api'; // 数智正式 // const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用