mirror of
https://github.com/NetEase/tango.git
synced 2026-08-30 16:55:35 +08:00
fix: check is in design mode
This commit is contained in:
@@ -66,5 +66,5 @@ export function isServiceVariablePath(key: string) {
|
||||
* 是否在 Tango 设计模式
|
||||
*/
|
||||
export function isInTangoDesignMode() {
|
||||
return '__TANGO_DESIGNER__' in window;
|
||||
return !!(window as any).__TANGO_DESIGNER__;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user