Compare commits
No commits in common. "3603c4e0f228544e7c260f488f4462a1306de19b" and "a2c962e94db3a02f36deb8ce48e5dbe1c1595b8d" have entirely different histories.
3603c4e0f2
...
a2c962e94d
|
@ -173,10 +173,12 @@ const toolStore = useToolState()
|
|||
// 将标签中的双引号增加转义
|
||||
const escapeHtmlQuotes = (str) => {
|
||||
// 后端已replace双引号, 故前端不用在处理
|
||||
const regex1 = /\\+/g; // 匹配多个反斜杠
|
||||
let result = str.replace(regex1, '\\');
|
||||
return str
|
||||
|
||||
return result;
|
||||
// 只对双引号进行转义
|
||||
// return str.replace(/(<[^>]+>)/g, function (match) {
|
||||
// return match.replace(/"/g, '\\"')
|
||||
// })
|
||||
}
|
||||
const pollingST = ref(null) //轮询定时器标识
|
||||
|
||||
|
|
|
@ -521,10 +521,12 @@ const tableRadioChange = (e) => {
|
|||
// 将标签中的双引号增加转义
|
||||
const escapeHtmlQuotes = (str) => {
|
||||
// 后端已replace双引号, 故前端不用在处理
|
||||
const regex1 = /\\+/g; // 匹配多个反斜杠
|
||||
let result = str.replace(regex1, '\\');
|
||||
return str
|
||||
|
||||
return result;
|
||||
// 只对双引号进行转义
|
||||
// return str.replace(/(<[^>]+>)/g, function (match) {
|
||||
// return match.replace(/"/g, '\\"')
|
||||
// })
|
||||
}
|
||||
|
||||
//#region 作业概况
|
||||
|
|
Loading…
Reference in New Issue