Commit 74ef643e authored by wangdng's avatar wangdng

mathjaxfix

parent 18d0825c
...@@ -147,7 +147,7 @@ function electronLog (data, color) { ...@@ -147,7 +147,7 @@ function electronLog (data, color) {
log += ` ${line}\n` log += ` ${line}\n`
}) })
if (/[0-9A-z]+/.test(log)) { if (/[0-9A-z]+/.test(log)) {
//console.log( console.log(
chalk[color].bold('┏ Electron -------------------') + chalk[color].bold('┏ Electron -------------------') +
'\n\n' + '\n\n' +
log + log +
...@@ -172,7 +172,7 @@ function greeting () { ...@@ -172,7 +172,7 @@ function greeting () {
space: false space: false
}) })
} else //console.log(chalk.yellow.bold('\n electron-vue')) } 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 () { function init () {
......
{ {
"name": "SmartSlice", "name": "SmartSlice",
"version": "0.1.2", "version": "0.2.2",
"author": "wangdongMAC <897253127@qq.com>", "author": "wangdongMAC <897253127@qq.com>",
"description": "A National Key Research Project AI ", "description": "A National Key Research Project AI ",
"license": null, "license": null,
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<!-- Add `node_modules/` to global paths so `require` works properly in development --> <!-- 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 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> <script>
require('module').globalPaths.push('<%= htmlWebpackPlugin.options.nodeModules.replace(/\\/g, '\\\\') %>') require('module').globalPaths.push('<%= htmlWebpackPlugin.options.nodeModules.replace(/\\/g, '\\\\') %>')
</script> </script>
......
...@@ -7,7 +7,7 @@ import App from './App' ...@@ -7,7 +7,7 @@ import App from './App'
import router from './router' import router from './router'
import {Table} from 'element-ui' import {Table} from 'element-ui'
import store from './store/index'; 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')) if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios Vue.http = Vue.prototype.$http = axios
......
...@@ -23,7 +23,7 @@ const MathQueue = function (elementId) { ...@@ -23,7 +23,7 @@ const MathQueue = function (elementId) {
if (!window.MathJax) { if (!window.MathJax) {
return; 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