Jason 2 年之前
父節點
當前提交
d600cf0241
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      backstage/blogs/routes.py

+ 2 - 2
backstage/blogs/routes.py

@@ -277,7 +277,7 @@ def edit_contact_us_editemail():
         inf.write(result)      
 
     #sortedData = sorted(sortedData, key=lambda x: x['type'])
-    return "Success " + result
+    return "{success: Success " + result + "}"
 
 @blogs_app.route('/backstage/blog/create/', methods=['POST'])
 def create():
@@ -359,7 +359,7 @@ def edit_blog_editfurther():
                 inf.write('<li><a href="' + d[0] + '">' + d[1] + '</a></li>\n')     
 
     #sortedData = sorted(sortedData, key=lambda x: x['type'])
-    return "Success"
+    return "{success: Success}"
 
 @blogs_app.route('/backstage/blog/createCat/', methods=['GET'])
 def createCat():