star7th 7 năm trước cách đây
mục cha
commit
4b72ebde05

+ 1 - 1
web/index.html

@@ -4,4 +4,4 @@
       "server": window.location.protocol +'//'+ window.location.host + window.location.pathname+ '../server/index.php?s=',
       //"lang" :'en'
       "lang" :'zh-cn'
-  }</script><link href=./static/css/app.9342eacf1936ecf8adcde0e75caea0b6.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.c63afeef27bc29822929.js></script><script type=text/javascript src=./static/js/vendor.25875d6925504ab7ff8d.js></script><script type=text/javascript src=./static/js/app.aea3bffc080eb1a72012.js></script></body></html>
+  }</script><link href=./static/css/app.3b798b9b6163bedf8df49efbf9aaa277.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.e715af503d240fb72082.js></script><script type=text/javascript src=./static/js/vendor.25875d6925504ab7ff8d.js></script><script type=text/javascript src=./static/js/app.ca9f835b2587e97a3a67.js></script></body></html>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
web/static/css/app.3b798b9b6163bedf8df49efbf9aaa277.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
web/static/js/app.aea3bffc080eb1a72012.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
web/static/js/app.ca9f835b2587e97a3a67.js


+ 1 - 1
web/static/js/manifest.c63afeef27bc29822929.js → web/static/js/manifest.e715af503d240fb72082.js

@@ -1 +1 @@
-!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var i,u,f,s=0,l=[];s<t.length;s++)u=t[s],o[u]&&l.push(o[u][0]),o[u]=0;for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i]);for(r&&r(t,a,c);l.length;)l.shift()();if(c)for(s=0;s<c.length;s++)f=n(n.s=c[s]);return f};var t={},o={2:0};n.e=function(e){function r(){i.onerror=i.onload=null,clearTimeout(u);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var a=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=a;var c=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=12e4,n.nc&&i.setAttribute("nonce",n.nc),i.src=n.p+"static/js/"+e+"."+{0:"25875d6925504ab7ff8d",1:"aea3bffc080eb1a72012"}[e]+".js";var u=setTimeout(r,12e4);return i.onerror=i.onload=r,c.appendChild(i),a},n.m=e,n.c=t,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
+!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var i,u,f,s=0,l=[];s<t.length;s++)u=t[s],o[u]&&l.push(o[u][0]),o[u]=0;for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i]);for(r&&r(t,a,c);l.length;)l.shift()();if(c)for(s=0;s<c.length;s++)f=n(n.s=c[s]);return f};var t={},o={2:0};n.e=function(e){function r(){i.onerror=i.onload=null,clearTimeout(u);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var a=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=a;var c=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=12e4,n.nc&&i.setAttribute("nonce",n.nc),i.src=n.p+"static/js/"+e+"."+{0:"25875d6925504ab7ff8d",1:"ca9f835b2587e97a3a67"}[e]+".js";var u=setTimeout(r,12e4);return i.onerror=i.onload=r,c.appendChild(i),a},n.m=e,n.c=t,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);

+ 6 - 0
web_src/src/components/common/Editormd.vue

@@ -141,7 +141,13 @@ export default {
     getMarkdown(){
       return this.instance.getMarkdown();
     },
+    editor_unwatch(){
+      return this.instance.unwatch();
+    },
 
+    editor_watch(){
+      return this.instance.watch();
+    },
     clear(){
       return this.instance.clear();
     },

+ 19 - 1
web_src/src/components/page/edit/Index.vue

@@ -220,6 +220,14 @@ export default {
               setTimeout(function(){
                 that.insertValue(that.content ,1) ;
               },500);
+              setTimeout(function(){
+                //如果长度大于3000,则关闭预览
+                if (that.content.length > 3000) {
+                  that.editor_unwatch();
+                }else{
+                  that.editor_watch();
+                }
+              },1000);
               that.title = response.data.data.page_title ;
               that.item_id = response.data.data.item_id ;
               that.s_number = response.data.data.s_number ;
@@ -322,7 +330,17 @@ export default {
     insert_database_template(){
       this.insertValue(this.$refs.database_doc_templ.innerHTML ) ;
     },
-
+    //关闭预览
+    editor_unwatch(){
+      let childRef = this.$refs.Editormd ;//获取子组件
+      childRef.editor_unwatch();
+      this.$alert("检测到本页面内容比较多,showdoc暂时关闭了html实时预览功能,以防止过多内容造成页面卡顿。你可以在编辑栏中找到预览按钮进行手动打开。")
+    },
+    //
+    editor_watch(){
+      let childRef = this.$refs.Editormd ;//获取子组件
+      childRef.editor_watch();
+    },
     //json转参数表格
     ShowJsonToTable(){
         let childRef = this.$refs.JsonToTable ;//获取子组件

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác