修改html的参数
This commit is contained in:
@@ -19,8 +19,8 @@ const service = axios.create({
|
|||||||
// baseURL: 'https://submission.tmrjournals.com/', //正式 记得切换
|
// baseURL: 'https://submission.tmrjournals.com/', //正式 记得切换
|
||||||
// baseURL: 'http://www.tougao.com/', //测试本地 记得切换
|
// baseURL: 'http://www.tougao.com/', //测试本地 记得切换
|
||||||
// baseURL: 'http://192.168.110.110/tougao/public/index.php/',
|
// baseURL: 'http://192.168.110.110/tougao/public/index.php/',
|
||||||
// baseURL: '/api', //本地
|
baseURL: '/api', //本地
|
||||||
baseURL: '/', //正式
|
// baseURL: '/', //正式
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -206,9 +206,9 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
decodeHtml(html) {
|
decodeHtml(html) {
|
||||||
var txt = document.createElement('textarea');
|
// var txt = document.createElement('textarea');
|
||||||
txt.innerHTML = html;
|
// txt.innerHTML = html;
|
||||||
return txt.value;
|
return html;
|
||||||
},
|
},
|
||||||
//去掉最外层自定义的span标签
|
//去掉最外层自定义的span标签
|
||||||
extractContentWithoutOuterSpan(cell) {
|
extractContentWithoutOuterSpan(cell) {
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
//记得切换
|
//记得切换
|
||||||
|
|
||||||
//正式
|
//正式
|
||||||
const mediaUrl = '/public/';
|
// const mediaUrl = '/public/';
|
||||||
const baseUrl = '/';
|
// const baseUrl = '/';
|
||||||
|
|
||||||
//正式环境
|
//正式环境
|
||||||
|
|
||||||
// const mediaUrl = 'https://submission.tmrjournals.com/public/';
|
const mediaUrl = 'https://submission.tmrjournals.com/public/';
|
||||||
// // const mediaUrl = 'http://zmzm.tougao.dev.com/public/';
|
// const mediaUrl = 'http://zmzm.tougao.dev.com/public/';
|
||||||
// const baseUrl = '/api'
|
const baseUrl = '/api'
|
||||||
|
|
||||||
//测试环境
|
//测试环境
|
||||||
|
|
||||||
|
|||||||
@@ -462,7 +462,7 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
const escapeIllegalLT = (str) => {
|
const escapeIllegalLT = (str) => {
|
||||||
return str.replace(/<(?!(\/?(p|div|span|table|tr|td|th|b|i|strong|em|ul|ol|li|br|img)))/gi, '<');
|
return str.replace(/<(?!(\/?(p|div|span|table|tr|td|th|b|i|strong|em|ul|ol|li|br|img|myh3|myfigure|mytable|wmath)))/gi, '<');
|
||||||
};
|
};
|
||||||
|
|
||||||
let processedHtml = '';
|
let processedHtml = '';
|
||||||
|
|||||||
@@ -180,6 +180,7 @@ Vue.component("Editor", Editor);
|
|||||||
const components = {
|
const components = {
|
||||||
'common-table': () => import('@/components/page/components/table/table.vue'),
|
'common-table': () => import('@/components/page/components/table/table.vue'),
|
||||||
'common-review-article': () => import('@/components/page/components/reviewArticle/index.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': () => import('@/components/page/components/EditorArticle/index.vue'),
|
||||||
'common-editor-article-detail': () => import('@/components/page/components/EditorArticle/detail.vue'),
|
'common-editor-article-detail': () => import('@/components/page/components/EditorArticle/detail.vue'),
|
||||||
'common-late-x': () => import('@/components/page/components/table/LateX.vue'),
|
'common-late-x': () => import('@/components/page/components/table/LateX.vue'),
|
||||||
|
|||||||
Reference in New Issue
Block a user