|
@@ -319,6 +319,7 @@ import Report from "@/log-center/log"
|
|
|
import { srcPublishSuccess } from '@/http/publishApi'
|
|
|
import { discordAuthUrl, checkGuildJoined } from '@/http/discordApi'
|
|
|
import { discordAuthRedirectUri, faceShareRedirectUrl} from '@/http/configAPI'
|
|
|
+import { getFrontConfig } from "@/http/account";
|
|
|
|
|
|
var moment = require('moment');
|
|
|
|
|
@@ -327,7 +328,7 @@ let joinDiscordActionState = 'default'; //authAndJoinIng joinIng reAuth
|
|
|
let joinDiscordIng = ref(false);
|
|
|
|
|
|
let facebookAppConfig = {
|
|
|
- facebookAppId: "1040829453198385",
|
|
|
+ facebookAppId: "",
|
|
|
faceShareRedirectUrl
|
|
|
};
|
|
|
|
|
@@ -789,9 +790,20 @@ const handleStatusPage = () => {
|
|
|
|
|
|
}
|
|
|
|
|
|
+function setFrontConfig() {
|
|
|
+ getFrontConfig({
|
|
|
+ params: {},
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == 0) {
|
|
|
+ facebookAppConfig.facebookAppId = res.data.fbClientId;
|
|
|
+ }
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
function init() {
|
|
|
onRuntimeMsg();
|
|
|
onPageVisbile();
|
|
|
+ setFrontConfig();
|
|
|
getPostDetail({
|
|
|
params: {
|
|
|
postId: state.postId
|