Skip to content

Commit

Permalink
style: 代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
huajian123 committed Dec 15, 2023
1 parent c7c85a8 commit acc837b
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/core/services/common/driver.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DOCUMENT } from '@angular/common';
import { DestroyRef, inject, Inject, Injectable } from '@angular/core';
import { DestroyRef, inject, Injectable } from '@angular/core';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';

import { ThemeService } from '@store/common-store/theme.service';
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/services/common/lazy.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DOCUMENT } from '@angular/common';
import { inject, Inject, Injectable } from '@angular/core';
import { inject, Injectable } from '@angular/core';
import { BehaviorSubject, Observable } from 'rxjs';
import { filter, share } from 'rxjs/operators';

Expand Down
2 changes: 1 addition & 1 deletion src/app/core/services/common/preloader.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DOCUMENT } from '@angular/common';
import { inject, Inject, Injectable } from '@angular/core';
import { inject, Injectable } from '@angular/core';

/*
* 顶部滚动pre服务
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/services/common/reuse-strategy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DOCUMENT } from '@angular/common';
import { DestroyRef, inject, Inject } from '@angular/core';
import { DestroyRef, inject } from '@angular/core';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { ActivatedRouteSnapshot, DetachedRouteHandle, RouteReuseStrategy } from '@angular/router';

Expand Down
2 changes: 1 addition & 1 deletion src/app/core/services/common/window.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isPlatformBrowser } from '@angular/common';
import { inject, Inject, Injectable, InjectionToken, PLATFORM_ID } from '@angular/core';
import { inject, Injectable, InjectionToken, PLATFORM_ID } from '@angular/core';

const WINDOW_TOKEN = new InjectionToken<Window>('A reference to the window object', {
factory: () => window
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HttpClient, HttpEvent, HttpEventType, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse } from '@angular/common/http';
import { DestroyRef, inject, Injectable, NgZone } from '@angular/core';
import { DestroyRef, inject, Injectable } from '@angular/core';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { Router } from '@angular/router';
import { Observable, of } from 'rxjs';
Expand Down
1 change: 0 additions & 1 deletion src/app/core/startup/startup.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { inject, Injectable } from '@angular/core';

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

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

Expand Down
3 changes: 1 addition & 2 deletions src/app/pages/system/account/account.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
<a class="collapse operate-text" (click)="toggleCollapse()">
@if (isCollapse) {
<span>展开</span>
}
@if (!isCollapse) {
} @else {
<span>收起</span>
}
<i nz-icon [nzType]="isCollapse ? 'down' : 'up'"></i>
Expand Down

0 comments on commit acc837b

Please sign in to comment.