Skip to content

Commit 7c652bd

Browse files
Msquittto陈潇文
andauthored
[frontend] 修复白屏的问题 (#17)
* [frontend] 环境变量获取修改 * [frontend] 修改拼写错误 --------- Co-authored-by: 陈潇文 <[email protected]>
1 parent 39bb2ee commit 7c652bd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app-engine/frontend/src/pages/components/text-editor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import 'tinymce/plugins/wordcount/index.js';
2121
import 'tinymce/skins/ui/oxide/skin.min.css';
2222
import 'tinymce/themes/silver/theme.min.js';
2323
const { AIPP_URL } = serviceConfig;
24-
const { NODE_ENV, PACKAGE_NODE }= process.env;
2524

2625
/**
2726
* 发布应用富文本编辑器组件
@@ -79,7 +78,7 @@ const TextEditor = forwardRef((props, ref) => {
7978

8079
// 基于环境调整tinymce初始化文件路径
8180
const adjustInitPathByEnv = url => {
82-
if (NODE_ENV === 'production' && PACKAGE_NODE === 'spa') {
81+
if (process.env.NODE_ENV === 'production' && process.env.PACKAGE_MODE === 'spa') {
8382
return `/apps/appengine/${url}`;
8483
}
8584
return url;

0 commit comments

Comments
 (0)