Skip to content

Commit d14b0b8

Browse files
ycjcl868sorrycc
authored andcommitted
fix: umi ui showMini,hideMini api condition (#3424)
1 parent cbb3c69 commit d14b0b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/umi-ui/client/src/PluginAPI.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default class PluginAPI {
112112
isMini: IUi.IMini = () => isMiniUI();
113113

114114
showMini: IUi.IShowMini = () => {
115-
if (this.isMini) {
115+
if (this.isMini()) {
116116
window.parent.postMessage(
117117
JSON.stringify({
118118
action: 'umi.ui.showMini',
@@ -123,7 +123,7 @@ export default class PluginAPI {
123123
};
124124

125125
hideMini: IUi.IHideMini = () => {
126-
if (this.isMini) {
126+
if (this.isMini()) {
127127
window.parent.postMessage(
128128
JSON.stringify({
129129
action: 'umi.ui.hideMini',

0 commit comments

Comments
 (0)