feat: add the api of global closing page: $closePage(closeRoute, nextRoute);🌟

新增:增加全局关闭页面api: $closePage(closeRoute, nextRoute);
This commit is contained in:
iczer
2020-08-06 21:12:51 +08:00
parent 9c10453f97
commit c10ea64ba7
4 changed files with 37 additions and 9 deletions

View File

@@ -14,11 +14,9 @@
<span>设置</span>
</a-menu-item>
<a-menu-divider />
<a-menu-item>
<a @click="logout">
<a-icon style="margin-right: 8px;" type="poweroff" />
<span>退出登录</span>
</a>
<a-menu-item @click="logout">
<a-icon style="margin-right: 8px;" type="poweroff" />
<span>退出登录</span>
</a-menu-item>
</a-menu>
</a-dropdown>