Skip to content

Commit acc837b

Browse files
committed
style: 代码优化
1 parent c7c85a8 commit acc837b

File tree

8 files changed

+7
-9
lines changed

8 files changed

+7
-9
lines changed

src/app/core/services/common/driver.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DOCUMENT } from '@angular/common';
2-
import { DestroyRef, inject, Inject, Injectable } from '@angular/core';
2+
import { DestroyRef, inject, Injectable } from '@angular/core';
33
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
44

55
import { ThemeService } from '@store/common-store/theme.service';

src/app/core/services/common/lazy.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DOCUMENT } from '@angular/common';
2-
import { inject, Inject, Injectable } from '@angular/core';
2+
import { inject, Injectable } from '@angular/core';
33
import { BehaviorSubject, Observable } from 'rxjs';
44
import { filter, share } from 'rxjs/operators';
55

src/app/core/services/common/preloader.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DOCUMENT } from '@angular/common';
2-
import { inject, Inject, Injectable } from '@angular/core';
2+
import { inject, Injectable } from '@angular/core';
33

44
/*
55
* 顶部滚动pre服务

src/app/core/services/common/reuse-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DOCUMENT } from '@angular/common';
2-
import { DestroyRef, inject, Inject } from '@angular/core';
2+
import { DestroyRef, inject } from '@angular/core';
33
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
44
import { ActivatedRouteSnapshot, DetachedRouteHandle, RouteReuseStrategy } from '@angular/router';
55

src/app/core/services/common/window.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { isPlatformBrowser } from '@angular/common';
2-
import { inject, Inject, Injectable, InjectionToken, PLATFORM_ID } from '@angular/core';
2+
import { inject, Injectable, InjectionToken, PLATFORM_ID } from '@angular/core';
33

44
const WINDOW_TOKEN = new InjectionToken<Window>('A reference to the window object', {
55
factory: () => window

src/app/core/services/interceptors/login-expired.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { HttpClient, HttpEvent, HttpEventType, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse } from '@angular/common/http';
2-
import { DestroyRef, inject, Injectable, NgZone } from '@angular/core';
2+
import { DestroyRef, inject, Injectable } from '@angular/core';
33
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
44
import { Router } from '@angular/router';
55
import { Observable, of } from 'rxjs';

src/app/core/startup/startup.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { inject, Injectable } from '@angular/core';
22

33
import { TokenKey, TokenPre } from '@config/constant';
44
import { LoginInOutService } from '@core/services/common/login-in-out.service';
5-
import { UserInfoService } from '@store/common-store/userInfo.service';
65

76
import { WindowService } from '../services/common/window.service';
87

src/app/pages/system/account/account.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@
6161
<a class="collapse operate-text" (click)="toggleCollapse()">
6262
@if (isCollapse) {
6363
<span>展开</span>
64-
}
65-
@if (!isCollapse) {
64+
} @else {
6665
<span>收起</span>
6766
}
6867
<i nz-icon [nzType]="isCollapse ? 'down' : 'up'"></i>

0 commit comments

Comments
 (0)