From 8fcf60db5248b9091d4f70f3eb0edffb3a3382e7 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 19 Sep 2019 10:04:24 +0800 Subject: [PATCH] configShareForCustom --- public/react/src/modules/paths/PathDetail/PathDetailIndex.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js index c8cece9fd..16c7d43c3 100644 --- a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js +++ b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import {getImageUrl,markdownToHTML} from 'educoder'; +import {getImageUrl,markdownToHTML, configShareForCustom} from 'educoder'; import DetailTop from './DetailTop.js'; import DetailCards from './DetailCards.js' import AddCollaborators from "./addCollaborators.js"; @@ -164,6 +164,7 @@ class PathDetailIndex extends Component{ // window.location.href = "/403"; return; } + configShareForCustom(result.data.name, result.data.description) if(result.data.allow_visit===true){ this.setState({