fix.warnings

This commit is contained in:
2021-09-24 14:51:13 +08:00
parent 1e07996a42
commit a814040995
3 changed files with 4 additions and 3 deletions

View File

@@ -1 +0,0 @@
export const ACCESS_TOKEN = 'Access-Token'

View File

@@ -68,8 +68,7 @@ router.beforeEach((to, from, next) => {
function setDocumentTitle(meta: MyRouteMeta) {
document.title = meta?.title
const ua = navigator.userAgent
// eslint-disable-next-line
const regex = /\bMicroMessenger\/([\d\.]+)/
const regex = /\bMicroMessenger\/([\d.]+)/
if (regex.test(ua) && /ip(hone|od|ad)/i.test(ua)) {
const i = document.createElement('iframe')
i.src = '/favicon.ico'

View File

@@ -69,6 +69,9 @@ export default createStore<State>({
actions: {
setUserInfo: ({ commit }, info: BaseInfo): void => {
commit('setUserInfo', info)
},
setOpenId: ({ commit }, openId: string): void => {
commit('setOpenId', openId)
}
},
modules: {