提交 ce4bac4a 编写于 作者: X xjh22222228

fix: user

上级 ddf5990b
......@@ -2,6 +2,7 @@
// See https://github.com/xjh22222228/nav
import hotkeys from 'hotkeys-js'
import config from '../../../nav.config'
import { Component, Output, EventEmitter, Input } from '@angular/core'
import { isDark as isDarkFn, randomBgImg, queryString } from '../../utils'
import { NzModalService } from 'ng-zorro-antd/modal'
......@@ -93,6 +94,7 @@ export class FixbarComponent {
nzOkText: '知道了',
nzContent: `
<p>Token: ${getToken()}</p>
<p>部署分支: ${config.branch}</p>
<p>上次构建时间: ${date || '未知'}</p>
<p>当前版本: <img src="https://img.shields.io/badge/release-v${VERSION}-red.svg?longCache=true&style=flat-square"></p>
<p>最新版本: <img src="https://img.shields.io/github/v/release/xjh22222228/nav" /></p>
......
// Copyright @ 2018-2021 xiejiahe. All rights reserved. MIT license.
// See https://github.com/xjh22222228/nav
import { STORAGE_KEY_MAP } from '../constants'
export function getToken() {
return window.localStorage.getItem(STORAGE_KEY_MAP.token)
return window.localStorage.getItem('token')
}
export function setToken(token: string) {
return window.localStorage.setItem(STORAGE_KEY_MAP.token, token)
return window.localStorage.setItem('token', token)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册