提交 6b5931cd 编写于 作者: X xjh22222228

fix: Check login conditions

上级 bc0ecc00
......@@ -17,7 +17,15 @@
<i class="iconfont iconjiantouarrow483 down-arrow" [class.active]="dataSource.collapsed"></i>
</span>
<i nz-icon nzType="plus" nzTheme="outline" class="add-icon" (click)="toggleCreateModal()"></i>
<i
*ngIf="isLogin"
nz-icon
nzType="plus"
nzTheme="outline"
class="add-icon"
(click)="toggleCreateModal()"
>
</i>
</div>
<app-create-web
......
......@@ -14,5 +14,6 @@
right: 20px;
transform: translateY(-50%);
cursor: pointer;
color: #666;
}
}
......@@ -6,6 +6,7 @@ import { INavThreeProp, INavProps, INavFourProp } from '../../types'
import { NzMessageService } from 'ng-zorro-antd/message'
import * as __tag from '../../../data/tag.json'
import { queryString, setWebsiteList } from '../../utils'
import { getToken } from '../../utils/user'
import { websiteList } from '../../store'
@Component({
......@@ -18,6 +19,7 @@ export class ToolbarTitleWebComponent implements OnInit {
@Input() dataSource: INavThreeProp
@Output() onCollapse = new EventEmitter()
isLogin = !!getToken()
showCreateModal = false
websiteList: INavProps[] = websiteList
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册