mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-07 19:07:30 +08:00
打开MVVM在编辑器模式下运行
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { EDITOR } from "cc/env";
|
||||
import { EDITOR_NOT_IN_PREVIEW } from "cc/env";
|
||||
|
||||
/** VM组件环境验证 */
|
||||
export class VMEnv {
|
||||
/** 编辑状态 */
|
||||
static get editor() {
|
||||
return EDITOR;
|
||||
return EDITOR_NOT_IN_PREVIEW;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user