mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-02 03:38:03 +08:00
fix: switch language will add tab
This commit is contained in:
parent
2d737e558f
commit
489c4a9c44
@ -52,11 +52,13 @@ export class ApiTabOperateService {
|
||||
//Tab from url
|
||||
try {
|
||||
//If current url did't match exist tab,throw error
|
||||
this.generateTabFromUrl(this.router.url);
|
||||
this.operateTabAfterRouteChange({
|
||||
url: this.router.url,
|
||||
});
|
||||
return;
|
||||
const existTab = this.getSameContentTab(this.generateTabFromUrl(this.router.url));
|
||||
if (existTab) {
|
||||
this.operateTabAfterRouteChange({
|
||||
url: this.router.url,
|
||||
});
|
||||
return;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user