xjc 4 år sedan
förälder
incheckning
63fcf8392a
3 ändrade filer med 14 tillägg och 10 borttagningar
  1. 1 0
      package.json
  2. 5 2
      src/static/UEditor/ueditor.all.js
  3. 8 8
      src/views/Home.vue

+ 1 - 0
package.json

@@ -36,6 +36,7 @@
     "@vue/cli-service": "^3.5.0",
     "axios": "^0.18.0",
     "babel-loader": "^8.0.2",
+    "babel-plugin-transform-remove-strict-mode": "^0.0.2",
     "babel-polyfill": "^6.26.0",
     "es6-promise": "^4.2.8",
     "eslint": "^5.8.0",

+ 5 - 2
src/static/UEditor/ueditor.all.js

@@ -24548,6 +24548,7 @@ UE.plugin.register('simpleupload', function() {
 
           if (res.state == 'SUCCESS' && res.url) {
             loader = me.document.getElementById(loadingId);
+            console.log(loader,1111111111111111)
             loader.setAttribute('src', link);
             loader.setAttribute('_src', link);
             loader.setAttribute('title', res.title || '');
@@ -28623,7 +28624,8 @@ UE.ui = baidu.editor.ui = {};
             var editor = this.editor,
                 me = this;
 
-            editor.addListener('ready', function () {
+            // editor.addListener('ready', function () {
+            editor.addListener('ready', function ED() {
                 //提供getDialog方法
                 editor.getDialog = function (name) {
                     return editor.ui._dialogs[name + "Dialog"];
@@ -28643,7 +28645,8 @@ UE.ui = baidu.editor.ui = {};
                 if (editor.options.wordCount) {
                     function countFn() {
                         setCount(editor,me);
-                        domUtils.un(editor.document, "click", arguments.callee);
+                        // domUtils.un(editor.document, "click", arguments.callee);
+                        domUtils.un(editor.document, "click", ED);
                     }
                     domUtils.on(editor.document, "click", countFn);
                     editor.ui.getDom('wordcount').innerHTML = editor.getLang("wordCountTip");

+ 8 - 8
src/views/Home.vue

@@ -10,8 +10,8 @@
 	<el-container>
 		<el-header>
 			<div class="header">
-				<img class="logo" src="../assets/logo.png" alt="">
-				<div class="siteTitle">中科院期刊微信公众号集中管理平台</div>
+				<!-- <img class="logo" src="../assets/logo.png" alt=""> -->
+				<!-- <div class="siteTitle">中科院期刊微信公众号集中管理平台</div> -->
 			</div>	
 			<div class="nav">
 				<router-link v-for='(item,index) in inDate' :key='index' :class="item.act?'active':''" :to="item.to" @click.native='active(index)'>
@@ -134,13 +134,13 @@ export default {
 		},
 		initNav(){
 			let data = [
-				{ act: true, to: '/index/index', name: '首页' },
-				{ act: false, to: '/journal/journal', name: '群刊导览' },
-				{ act: false, to: '/learning/activity', name: '学术交流' },
+				// { act: true, to: '/index/index', name: '首页' },
+				// { act: false, to: '/journal/journal', name: '群刊导览' },
+				// { act: false, to: '/learning/activity', name: '学术交流' },
 				{ act: false, to: '/article/article', name: '精品导读' },
-				{ act: false, to: '/conference/conference', name: '会议系统' },
-				{ act: false, to: '/message/message', name: '信息管理' },
-				{ act: false, to: '/system/account', name: '系统管理' },
+				// { act: false, to: '/conference/conference', name: '会议系统' },
+				// { act: false, to: '/message/message', name: '信息管理' },
+				// { act: false, to: '/system/account', name: '系统管理' },
 			];
 			let mod = this.$route.path.split("/")[1];
 			this.$router.options.routes.forEach((element,i) => {