Commit 74ef643e authored by wangdng's avatar wangdng

mathjaxfix

parent 18d0825c
......@@ -147,7 +147,7 @@ function electronLog (data, color) {
log += ` ${line}\n`
})
if (/[0-9A-z]+/.test(log)) {
//console.log(
console.log(
chalk[color].bold('┏ Electron -------------------') +
'\n\n' +
log +
......@@ -172,7 +172,7 @@ function greeting () {
space: false
})
} else //console.log(chalk.yellow.bold('\n electron-vue'))
//console.log(chalk.blue(' getting ready...') + '\n')
console.log(chalk.blue(' getting ready...') + '\n')
}
function init () {
......
{
"name": "SmartSlice",
"version": "0.1.2",
"version": "0.2.2",
"author": "wangdongMAC <897253127@qq.com>",
"description": "A National Key Research Project AI ",
"license": null,
......
......@@ -7,7 +7,7 @@
<!-- Add `node_modules/` to global paths so `require` works properly in development -->
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"> </script>
<!-- <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"> </script> -->
<script>
require('module').globalPaths.push('<%= htmlWebpackPlugin.options.nodeModules.replace(/\\/g, '\\\\') %>')
</script>
......
......@@ -7,7 +7,7 @@ import App from './App'
import router from './router'
import {Table} from 'element-ui'
import store from './store/index';
import * as mathjax from 'mathjax-full/es5/tex-svg-full'
if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios
......
......@@ -23,7 +23,7 @@ const MathQueue = function (elementId) {
if (!window.MathJax) {
return;
}
window.MathJax.Hub.Queue(["Typeset", window.MathJax.Hub, document.getElementById(elementId)]);
// window.MathJax.Hub.Queue(["Typeset", window.MathJax.Hub, document.getElementById(elementId)]);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment