Commit 06a68bb8 authored by Vanessa's avatar Vanessa

相关文章和随机文章请求发到静态资源上去了

parent bb29dd4b
......@@ -417,7 +417,7 @@ $.extend(Page.prototype, {
var randomArticles1Label = this.tips.randomArticles1Label;
// getRandomArticles
$.ajax({
url: latkeConfig.staticServePath + "/get-random-articles.do",
url: latkeConfig.servePath + "/get-random-articles.do",
type: "POST",
success: function(result, textStatus){
var randomArticles = result.randomArticles;
......@@ -449,7 +449,7 @@ $.extend(Page.prototype, {
*/
loadRelevantArticles: function (id, headTitle) {
$.ajax({
url: latkeConfig.staticServePath + "/article/id/" + id + "/relevant/articles",
url: latkeConfig.servePath + "/article/id/" + id + "/relevant/articles",
type: "GET",
success: function(data, textStatus){
var articles = data.relevantArticles;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment