Commit ef7cb6d5 authored by liuzheng712's avatar liuzheng712

feat: update

parent 4847a22c
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
<ul> <ul>
<li><a [routerLink]="['Index']"><img src="assets/imgs/logo.png" height="26px"/></a> <li><a [routerLink]="['Index']"><img src="assets/imgs/logo.png" height="26px"/></a>
</li> </li>
<li *ngFor="let v of DataStore.Nav; let k = index " [ngClass]="{'dropdown': v.children}"> <li *ngFor="let v of DataStore.Nav" [ngClass]="{'dropdown': v.children}">
<a>{{v.name}}</a> <a>{{v.name}}</a>
<ul [ngClass]="{'dropdown-content': v.children}"> <ul [ngClass]="{'dropdown-content': v.children}">
<li *ngFor="let vv of v.children; let kk = index" [ngClass]="{'disabled': vv.disable}"> <li *ngFor="let vv of v.children" [ngClass]="{'disabled': vv.disable}">
<a *ngIf="vv.href" [routerLink]="[vv.href]">{{vv.name}}</a> <a *ngIf="vv.href" [routerLink]="[vv.href]">{{vv.name}}</a>
<a id="{{vv.id}}" *ngIf="vv.click" (click)="click(vv.click)">{{vv.name}}</a> <a id="{{vv.id}}" *ngIf="vv.click" (click)="click(vv.click)">{{vv.name}}</a>
</li> </li>
......
...@@ -24,7 +24,6 @@ declare let jQuery: any; ...@@ -24,7 +24,6 @@ declare let jQuery: any;
}) })
export class NavComponent implements OnInit { export class NavComponent implements OnInit {
DataStore = DataStore; DataStore = DataStore;
User = User;
constructor(private _appService: AppService, constructor(private _appService: AppService,
private _http: HttpService, private _http: HttpService,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment