From 80476fae71f08bf4408c7509eff254031a4eeac6 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Wed, 24 Aug 2022 18:47:09 +0800 Subject: [PATCH] 路由修正,常量提取 --- src/config/myConstant.js | 33 +++++++++++++++++++++++++++------ 1 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/config/myConstant.js b/src/config/myConstant.js index fe586e0..50d46bb 100644 --- a/src/config/myConstant.js +++ b/src/config/myConstant.js @@ -1,10 +1,31 @@ //常量 const myConstant = { - fileTypeMarkDown: 1, - fileTypeHtml: 2, - fileTypeVideo: 3, - fileTypeMp3: 4, - fileTypeShort: 5, - fileTypeCover: 9, + uploadFileSizeLimit: 2 * 1024 * 1024, + visitorDataKey: "visitorData.inleft.com", + userName: "inleft", + img404: "this.onerror='';this.src=\"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", + } + } + + export default myConstant; -- Gitblit v1.9.1