star7th 7 years ago
parent
commit
4a542406dd

+ 1 - 1
composer.json

@@ -5,7 +5,7 @@
     "description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
     "keywords": ["showdoc","documents","Api"],
     "homepage": "https://github.com/star7th/showdoc",
-    "version":"v2.2.0",
+    "version":"v2.2.1",
     "license": "Apache-2.0",
     "authors": [
         {

+ 4 - 0
server/Application/Api/Model/PageModel.class.php

@@ -9,6 +9,10 @@ class PageModel extends BaseModel {
 
     //根据内容更新页面
     public function update_by_content($item_id,$page_title,$page_content,$cat_name='',$cat_name_sub='',$s_number = 99){
+        $item_id = intval($item_id);
+        if (!$item_id) {
+          return false;
+        }
         //如果传送了二级目录
         if ($cat_name) {
             $cat_name_array = D("Catalog")->where(" item_id = '$item_id' and level = 2 and cat_name = '%s' ",array($cat_name))->find();

+ 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.43675489f5abb728a99534de4ea795a6.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.e5bbf0cd004ae5af7526.js></script><script type=text/javascript src=./static/js/vendor.6ec312a9f1e4bcc005ef.js></script><script type=text/javascript src=./static/js/app.1fe74747bae9dd7435ab.js></script></body></html>
+  }</script><link href=./static/css/app.0bb88346b7ef66823a0ad3b594815870.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.70c4e5fb7856d843683e.js></script><script type=text/javascript src=./static/js/vendor.047101ffe823d47f6ad4.js></script><script type=text/javascript src=./static/js/app.334255ee4c74c91f604b.js></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
web/static/css/app.0bb88346b7ef66823a0ad3b594815870.css


File diff suppressed because it is too large
+ 0 - 0
web/static/css/app.43675489f5abb728a99534de4ea795a6.css


File diff suppressed because it is too large
+ 0 - 0
web/static/js/app.1fe74747bae9dd7435ab.js


File diff suppressed because it is too large
+ 0 - 0
web/static/js/app.334255ee4c74c91f604b.js


+ 1 - 1
web/static/js/manifest.e5bbf0cd004ae5af7526.js → web/static/js/manifest.70c4e5fb7856d843683e.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,c,a){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 c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(r&&r(t,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=n(n.s=a[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 c=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=c;var a=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:"6ec312a9f1e4bcc005ef",1:"1fe74747bae9dd7435ab"}[e]+".js";var u=setTimeout(r,12e4);return i.onerror=i.onload=r,a.appendChild(i),c},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,c,a){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 c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(r&&r(t,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=n(n.s=a[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 c=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=c;var a=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:"047101ffe823d47f6ad4",1:"334255ee4c74c91f604b"}[e]+".js";var u=setTimeout(r,12e4);return i.onerror=i.onload=r,a.appendChild(i),c},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}}([]);

File diff suppressed because it is too large
+ 0 - 0
web/static/js/vendor.047101ffe823d47f6ad4.js


File diff suppressed because it is too large
+ 0 - 0
web/static/js/vendor.6ec312a9f1e4bcc005ef.js


+ 1 - 2
web/static/lang/en.js

@@ -1,5 +1,3 @@
-'use strict';
-
 exports.__esModule = true;
 exports.default = {
     //index
@@ -195,6 +193,7 @@ exports.default = {
     'save_time':'save time' ,
     'insert_templ':'insert',
     'delete_templ':'delete',
+    'save_success':'save success',
 
     //catalog
     'add_cat':'add catalog',

+ 2 - 2
web/static/lang/zh-CN.js

@@ -1,5 +1,3 @@
-'use strict';
-
 exports.__esModule = true;
 exports.default = {
     //index
@@ -200,6 +198,8 @@ exports.default = {
     'save_time':'保存时间' ,
     'insert_templ':'插入此模板',
     'delete_templ':'删除模板',
+    'save_success':'保存成功',
+
 
     //catalog
     'add_cat':'添加目录',

File diff suppressed because it is too large
+ 224 - 224
web_src/package-lock.json


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

@@ -514,7 +514,6 @@ export default {
     
     //解除对粘贴上传图片的监听
     document.removeEventListener('paste', this.upload_paste_img);
-    alert("message")
   }
 }
 </script>

Some files were not shown because too many files changed in this diff