File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function get_achievements(params) {
2626// 获取单个成就
2727export function get_achievement ( achievement_id , params ) {
2828 if ( ! achievement_id ) return null ;
29- return $ . get ( `api/node/achievement/${ achievement_id } ` , params ) ;
29+ return $ . get ( `api/node/achievement/${ achievement_id } ` , { params } ) ;
3030}
3131
3232export function get_relation_achievements ( source_id ) {
Original file line number Diff line number Diff line change @@ -313,14 +313,14 @@ export default {
313313 this .is_empty = isEmpty;
314314 this .compatible = compatible;
315315
316- document .title = this .wiki_post .source .Name + this .$t (" pages.common.appendTitle" );
316+ document .title = this .wiki_post .source ? .Name + this .$t (" pages.common.appendTitle" );
317317
318318 User .isLogin () &&
319319 postHistory ({
320320 source_type: this .client == " origin" ? " origin_cj" : " cj" ,
321321 source_id: ~~ this .id ,
322322 link: location .href ,
323- title: post .title ,
323+ title: post? .title ,
324324 });
325325 });
326326 }
Original file line number Diff line number Diff line change @@ -792,7 +792,7 @@ export default {
792792 this.is_empty = isEmpty;
793793 this.compatible = compatible;
794794
795- document.title = this.wiki_post.source.Name + this.$t("pages.common.appendTitle");
795+ document.title = this.wiki_post.source? .Name + this.$t("pages.common.appendTitle");
796796
797797 User.isLogin() &&
798798 postHistory({
You can’t perform that action at this time.
0 commit comments