From c3aa826406d52957d6f98d0ecd4b77413d5ce908 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Mon, 29 Aug 2022 18:23:08 +0800 Subject: [PATCH] 统计模块异步加载 --- src/config/myConstant.js | 33 ++++++++++++++++++++++++++------- 1 files changed, 26 insertions(+), 7 deletions(-) diff --git a/src/config/myConstant.js b/src/config/myConstant.js index 35140f2..0e5c3c4 100644 --- a/src/config/myConstant.js +++ b/src/config/myConstant.js @@ -1,14 +1,33 @@ //常量 const myConstant = { - fileTypeMarkDown: 1, - fileTypeHtml: 2, - fileTypeVideo: 3, - fileTypeMp3: 4, - fileTypeShort: 5, - fileTypeCover: 9, uploadFileSizeLimit: 2 * 1024 * 1024, + uploadVideoSizeLimit: 200 * 1024 * 1024, visitorDataKey: "visitorData.inleft.com", - userName:"inleft" + userName: "inleft", + img404: "this.onerror='';this.src=\"http://t.inleft.com/share/media_photo/idea_beijing.jpg\"", + defaultBG:"http://t.inleft.com/share/media_photo/background.jpg", + defaultBGVideo:"http://t.inleft.com/share/media_photo/idea_beijing.jpg", + fileType: { + fileTypeMarkDown_1: 1, + fileTypeHtml_2: 2, + fileTypeVideo_3: 3, + fileTypeMp3_4: 4, + fileTypePictures_5: 5, + fileTypeTalking_9: 9, + }, + activeKeyType: { + type_1: "moment", + type_2: "flash", + type_3: "store", + }, + bucketName: { + bucket_article: "article", + bucket_video: "mp4", + bucket_mp3: "mp3", + bucket_cover: "cover", + bucket_picture: "picture", + } + } -- Gitblit v1.9.1