diff --git a/src/main/resources/templates/admin/admin_post_md_editor.ftl b/src/main/resources/templates/admin/admin_post_md_editor.ftl index bb640c134..86d367411 100755 --- a/src/main/resources/templates/admin/admin_post_md_editor.ftl +++ b/src/main/resources/templates/admin/admin_post_md_editor.ftl @@ -246,7 +246,7 @@ */ function autoComplateUrl() { var titleVal = $("#post_title").val(); - if(titleVal!="" && titleVal!=null){ + if(titleVal!="" && titleVal!=null && $("#postUrl").html()==''){ var result = $("#post_title").toPinyin().toLowerCase(); $("#postUrl").html(result.substring(0,result.length-1)); }