修改html的参数

This commit is contained in:
2026-02-11 17:17:54 +08:00
parent 81d3dd9320
commit 10348d1e75
5 changed files with 12 additions and 11 deletions

View File

@@ -19,8 +19,8 @@ const service = axios.create({
// baseURL: 'https://submission.tmrjournals.com/', //正式 记得切换
// baseURL: 'http://www.tougao.com/', //测试本地 记得切换
// baseURL: 'http://192.168.110.110/tougao/public/index.php/',
// baseURL: '/api', //本地
baseURL: '/', //正式
baseURL: '/api', //本地
// baseURL: '/', //正式
});

View File

@@ -206,9 +206,9 @@ export default {
});
},
decodeHtml(html) {
var txt = document.createElement('textarea');
txt.innerHTML = html;
return txt.value;
// var txt = document.createElement('textarea');
// txt.innerHTML = html;
return html;
},
//去掉最外层自定义的span标签
extractContentWithoutOuterSpan(cell) {

View File

@@ -2,14 +2,14 @@
//记得切换
//正式
const mediaUrl = '/public/';
const baseUrl = '/';
// const mediaUrl = '/public/';
// const baseUrl = '/';
//正式环境
// const mediaUrl = 'https://submission.tmrjournals.com/public/';
// // const mediaUrl = 'http://zmzm.tougao.dev.com/public/';
// const baseUrl = '/api'
const mediaUrl = 'https://submission.tmrjournals.com/public/';
// const mediaUrl = 'http://zmzm.tougao.dev.com/public/';
const baseUrl = '/api'
//测试环境

View File

@@ -462,7 +462,7 @@ export default {
const escapeIllegalLT = (str) => {
return str.replace(/<(?!(\/?(p|div|span|table|tr|td|th|b|i|strong|em|ul|ol|li|br|img)))/gi, '&lt;');
return str.replace(/<(?!(\/?(p|div|span|table|tr|td|th|b|i|strong|em|ul|ol|li|br|img|myh3|myfigure|mytable|wmath)))/gi, '&lt;');
};
let processedHtml = '';

View File

@@ -180,6 +180,7 @@ Vue.component("Editor", Editor);
const components = {
'common-table': () => import('@/components/page/components/table/table.vue'),
'common-review-article': () => import('@/components/page/components/reviewArticle/index.vue'),
'common-author-article': () => import('@/components/page/components/reviewArticle/author.vue'),
'common-editor-article': () => import('@/components/page/components/EditorArticle/index.vue'),
'common-editor-article-detail': () => import('@/components/page/components/EditorArticle/detail.vue'),
'common-late-x': () => import('@/components/page/components/table/LateX.vue'),