1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-17 05:36:13 +08:00

优化定时自动提交

This commit is contained in:
xiaochong0302 2024-11-09 20:37:43 +08:00
parent f482a8ec9e
commit 5b30d5d880
2 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,7 @@ layui.use(['jquery'], function () {
*/
setInterval(function () {
editor.sync();
if (!$form.attr('action').includes('update')) return;
if ($textarea.val().length > 30) {
$.ajax({
type: 'POST',

View File

@ -53,6 +53,7 @@ layui.use(['jquery'], function () {
*/
setInterval(function () {
editor.sync();
if (!$form.attr('action').includes('update')) return;
if ($textarea.val().length > 30) {
$.ajax({
type: 'POST',